Author: david
Date: Tue Jul 26 16:44:42 2011
New Revision: 9396
Log:
Add migration for per repository asset path setting
Modified:
trunk/data/fixtures/settings.yml
trunk/lib/task/migrate/QubitMigrate110.class.php
Modified: trunk/data/fixtures/settings.yml
==============================================================================
--- trunk/data/fixtures/settings.yml Tue Jul 26 16:35:46 2011 (r9395)
+++ trunk/data/fixtures/settings.yml Tue Jul 26 16:44:42 2011 (r9396)
@@ -3,7 +3,7 @@
name: version
editable: 0
deleteable: 0
- value: 66
+ value: 67
QubitSetting_2:
name: upload_dir
editable: 0
Modified: trunk/lib/task/migrate/QubitMigrate110.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate110.class.php Tue Jul 26 16:35:46
2011 (r9395)
+++ trunk/lib/task/migrate/QubitMigrate110.class.php Tue Jul 26 16:44:42
2011 (r9396)
@@ -61,6 +61,9 @@
case 65:
$this->addCsvMenu();
+
+ case 66:
+ $this->addPerRepositoryPathSetting();
}
// Delete "stub" objects
@@ -453,6 +456,24 @@
}
/**
+ * Add setting for per repository asset paths
+ *
+ * @return QubitMigrate110 SELF
+ */
+ protected function addPerRepositoryPathSetting()
+ {
+ $this->data['QubitSetting']['QubitSetting_per_repository_asset_path'] =
array(
+ 'name' => 'per_repository_asset_path',
+ 'editable' => 1,
+ 'deleteable' => 0,
+ 'value' => array('en' => '0'),
+ 'source_culture' => 'en'
+ );
+
+ return $this;
+ }
+
+ /**
* Slugs are inserted when some resources are inserted, but slugs are dumped
* separately when data is dumped. So loading slug data will try to insert
* duplicate slugs. To work around this, turn slugs into resource properties
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.