Author: david
Date: Fri Aug 26 14:44:25 2011
New Revision: 9606
Log:
Add default value for repository.upload_limit column
Modified:
trunk/lib/task/migrate/QubitMigrate110.class.php
Modified: trunk/lib/task/migrate/QubitMigrate110.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate110.class.php Fri Aug 26 13:57:22
2011 (r9605)
+++ trunk/lib/task/migrate/QubitMigrate110.class.php Fri Aug 26 14:44:25
2011 (r9606)
@@ -73,6 +73,9 @@
case 69:
$this->updatePathToAssets();
+
+ case 70:
+ $this->addRepostioryUploadLimit();
}
// Delete "stub" objects
@@ -680,6 +683,21 @@
}
/**
+ * Add default value for repository.upload_limit column
+ *
+ * @return QubitMigrate110 SELF
+ */
+ protected function addRepostioryUploadLimit()
+ {
+ foreach ($this->data['QubitRepository'] as $key => &$item)
+ {
+ $item['upload_limit'] = -1; // Unlimited
+ }
+
+ 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.