Author: sevein
Date: Tue Jan  3 11:51:32 2012
New Revision: 10535

Log:
Add sword_deposit_dir setting, bump db version

Modified:
   trunk/data/fixtures/settings.yml
   trunk/lib/task/migrate/QubitMigrate111.clas.php

Modified: trunk/data/fixtures/settings.yml
==============================================================================
--- trunk/data/fixtures/settings.yml    Tue Jan  3 11:42:15 2012        (r10534)
+++ trunk/data/fixtures/settings.yml    Tue Jan  3 11:51:32 2012        (r10535)
@@ -3,7 +3,7 @@
     name: version
     editable: 0
     deleteable: 0
-    value: 76
+    value: 77
   QubitSetting_2:
     name: upload_dir
     editable: 0
@@ -366,3 +366,6 @@
   QubitSetting_useJobScheduler:
     name: use_job_scheduler
     value: 0
+  QubitSetting_swordDepositDir:
+    name: sword_deposit_dir
+    value: '/tmp'

Modified: trunk/lib/task/migrate/QubitMigrate111.clas.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate111.clas.php     Tue Jan  3 11:42:15 
2012        (r10534)
+++ trunk/lib/task/migrate/QubitMigrate111.clas.php     Tue Jan  3 11:51:32 
2012        (r10535)
@@ -51,6 +51,9 @@
     {
       case 75:
         $this->addJobSchedulingSettings();
+
+      case 76:
+        $this->addSwordSettings();
     }
 
     // Delete "stub" objects
@@ -68,8 +71,6 @@
   {
     $this->data['QubitSetting']['QubitSetting_useJobScheduler'] = array(
       'name' => 'use_job_scheduler',
-      'editable' => 1,
-      'deleteable' => 0,
       'value' => array('en' => '-1'),
       'source_culture' => 'en'
     );
@@ -78,6 +79,22 @@
   }
 
   /**
+   * Add SWORD settings
+   *
+   * @return QubitMigrate111 this object
+   */
+  protected function addSwordSettings()
+  {
+    $this->data['QubitSetting']['QubitSetting_swordDepositDir'] = array(
+      'name' => 'sword_deposit_dir',
+      'value' => array('en' => '/tmp'),
+      '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.

Reply via email to