Fix viral error, column name(s) for indexes are passed as an array.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 10 Oct 2010 15:53:23 +0000 (11:53 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 10 Oct 2010 15:53:23 +0000 (11:53 -0400)
ingo/migration/1_ingo_base_tables.php
kronolith/migration/1_kronolith_base_tables.php
kronolith/migration/6_kronolith_upgrade_addresources.php
mnemo/migration/1_mnemo_base_tables.php
nag/migration/1_nag_base_tables.php
turba/migration/1_turba_base_tables.php

index 1798674..2f7be1d 100644 (file)
@@ -93,11 +93,11 @@ class IngoBaseTables extends Horde_Db_Migration_Base
             $t->primaryKey(array('share_id'));
             $t->end();
 
-            $this->addIndex('ingo_shares', 'share_name');
-            $this->addIndex('ingo_shares', 'share_owner');
-            $this->addIndex('ingo_shares', 'perm_creator');
-            $this->addIndex('ingo_shares', 'perm_default');
-            $this->addIndex('ingo_shares', 'perm_guest');
+            $this->addIndex('ingo_shares', array('share_name'));
+            $this->addIndex('ingo_shares', array('share_owner'));
+            $this->addIndex('ingo_shares', array('perm_creator'));
+            $this->addIndex('ingo_shares', array('perm_default'));
+            $this->addIndex('ingo_shares', array('perm_guest'));
         }
 
         if (!in_array('ingo_shares_groups', $tableList)) {
@@ -107,8 +107,8 @@ class IngoBaseTables extends Horde_Db_Migration_Base
             $t->column('perm', 'integer', array('null' => false));
             $t->end();
 
-            $this->addIndex('ingo_shares_groups', 'share_id');
-            $this->addIndex('ingo_shares_groups', 'group_uid');
+            $this->addIndex('ingo_shares_groups', array('share_id'));
+            $this->addIndex('ingo_shares_groups', array('group_uid'));
             $this->addIndex('ingo_shares_groups', 'perm');
         }
 
@@ -119,9 +119,9 @@ class IngoBaseTables extends Horde_Db_Migration_Base
             $t->column('perm', 'integer', array('null' => false));
             $t->end();
 
-            $this->addIndex('ingo_shares_users', 'share_id');
-            $this->addIndex('ingo_shares_users', 'user_uid');
-            $this->addIndex('ingo_shares_users', 'perm');
+            $this->addIndex('ingo_shares_users', array('share_id'));
+            $this->addIndex('ingo_shares_users', array('user_uid'));
+            $this->addIndex('ingo_shares_users', array('perm'));
         }
 
     }
index ea25daf..24d2fd5 100644 (file)
@@ -59,8 +59,8 @@ class KronolithBaseTables extends Horde_Db_Migration_Base
             $t->column('vfb_serialized', 'text', array('null' => false));
             $t->end();
 
-            $this->addIndex('kronolith_storage', 'vfb_owner');
-            $this->addIndex('kronolith_storage', 'vfb_email');
+            $this->addIndex('kronolith_storage', array('vfb_owner'));
+            $this->addIndex('kronolith_storage', array('vfb_email'));
         }
 
         if (!in_array('kronolith_shares', $tableList)) {
@@ -77,11 +77,11 @@ class KronolithBaseTables extends Horde_Db_Migration_Base
             $t->primaryKey(array('share_id'));
             $t->end();
 
-            $this->addIndex('kronolith_shares', 'share_name');
-            $this->addIndex('kronolith_shares', 'share_owner');
-            $this->addIndex('kronolith_shares', 'perm_creator');
-            $this->addIndex('kronolith_shares', 'perm_default');
-            $this->addIndex('kronolith_shares', 'perm_guest');
+            $this->addIndex('kronolith_shares', array('share_name'));
+            $this->addIndex('kronolith_shares', array('share_owner'));
+            $this->addIndex('kronolith_shares', array('perm_creator'));
+            $this->addIndex('kronolith_shares', array('perm_default'));
+            $this->addIndex('kronolith_shares', array('perm_guest'));
         }
 
         if (!in_array('kronolith_shares_groups', $tableList)) {
@@ -91,9 +91,9 @@ class KronolithBaseTables extends Horde_Db_Migration_Base
             $t->column('perm', 'integer', array('null' => false));
             $t->end();
 
-            $this->addIndex('kronolith_shares_groups', 'share_id');
-            $this->addIndex('kronolith_shares_groups', 'group_uid');
-            $this->addIndex('kronolith_shares_groups', 'perm');
+            $this->addIndex('kronolith_shares_groups', array('share_id'));
+            $this->addIndex('kronolith_shares_groups', array('group_uid'));
+            $this->addIndex('kronolith_shares_groups', array('perm'));
         }
 
         if (!in_array('kronolith_shares_users', $tableList)) {
@@ -104,9 +104,9 @@ class KronolithBaseTables extends Horde_Db_Migration_Base
             $t->column('perm', 'integer', array('null' => false));
             $t->end();
 
-            $this->addIndex('kronolith_shares_users', 'share_id');
-            $this->addIndex('kronolith_shares_users', 'user_uid');
-            $this->addIndex('kronolith_shares_users', 'perm');
+            $this->addIndex('kronolith_shares_users', array('share_id'));
+            $this->addIndex('kronolith_shares_users', array('user_uid'));
+            $this->addIndex('kronolith_shares_users', array('perm'));
         }
     }
 
index aeceae5..2b8d887 100644 (file)
@@ -32,8 +32,8 @@ class KronolithUpgradeAddResources extends Horde_Db_Migration_Base
             $t->primaryKey(array('resource_id'));
             $t->end();
 
-            $this->addIndex('kronolith_resources', 'resource_calendar');
-            $this->addIndex('kronolith_resources', 'resource_type');
+            $this->addIndex('kronolith_resources', array('resource_calendar'));
+            $this->addIndex('kronolith_resources', array('resource_type'));
         }
     }
 
index 1a30612..1deed63 100644 (file)
@@ -33,8 +33,8 @@ class MnemoBaseTables extends Horde_Db_Migration_Base
             $t->primaryKey(array('memo_owner', 'memo_id'));
             $t->end();
 
-            $this->addIndex('mnemo_memos', 'memo_owner');
-            $this->addIndex('mnemo_memos', 'memo_uid');
+            $this->addIndex('mnemo_memos', array('memo_owner'));
+            $this->addIndex('mnemo_memos', array('memo_uid'));
         }
 
         if (!in_array('mnemo_shares', $tableList)) {
@@ -50,11 +50,11 @@ class MnemoBaseTables extends Horde_Db_Migration_Base
             $t->column('attribute_desc', 'string', array('limit' => 255));
             $t->primaryKey(array('share_id'));
             $t->end();
-            $this->addIndex('mnemo_shares', 'share_name');
-            $this->addIndex('mnemo_shares', 'share_owner');
-            $this->addIndex('mnemo_shares', 'perm_creator');
-            $this->addIndex('mnemo_shares', 'perm_default');
-            $this->addIndex('mnemo_shares', 'perm_guest');
+            $this->addIndex('mnemo_shares', array('share_name'));
+            $this->addIndex('mnemo_shares', array('share_owner'));
+            $this->addIndex('mnemo_shares', array('perm_creator'));
+            $this->addIndex('mnemo_shares', array('perm_default'));
+            $this->addIndex('mnemo_shares', array('perm_guest'));
         }
 
         if (!in_array('mnemo_shares_groups', $tableList)) {
@@ -64,9 +64,9 @@ class MnemoBaseTables extends Horde_Db_Migration_Base
             $t->column('perm', 'integer', array('null' => false));
             $t->end();
 
-            $this->addIndex('mnemo_shares_groups', 'share_id');
-            $this->addIndex('mnemo_shares_groups', 'group_uid');
-            $this->addIndex('mnemo_shares_groups', 'perm');
+            $this->addIndex('mnemo_shares_groups', array('share_id'));
+            $this->addIndex('mnemo_shares_groups', array('group_uid'));
+            $this->addIndex('mnemo_shares_groups', array('perm'));
         }
 
         if (!in_array('mnemo_shares_users', $tableList)) {
@@ -76,9 +76,9 @@ class MnemoBaseTables extends Horde_Db_Migration_Base
             $t->column('perm', 'integer', array('null' => false));
             $t->end();
 
-            $this->addIndex('mnemo_shares_users', 'share_id');
-            $this->addIndex('mnemo_shares_users', 'user_uid');
-            $this->addIndex('mnemo_shares_users', 'perm');
+            $this->addIndex('mnemo_shares_users', array('share_id'));
+            $this->addIndex('mnemo_shares_users', array('user_uid'));
+            $this->addIndex('mnemo_shares_users', array('perm'));
         }
     }
 
index db8b068..1266471 100644 (file)
@@ -44,9 +44,9 @@ class NagBaseTables extends Horde_Db_Migration_Base
             $t->primaryKey(array('task_id'));
             $t->end();
 
-            $this->addIndex('nag_tasks', 'task_owner');
-            $this->addIndex('nag_tasks', 'task_uid');
-            $this->addIndex('nag_tasks', 'task_start');
+            $this->addIndex('nag_tasks', array('task_owner'));
+            $this->addIndex('nag_tasks', array('task_uid'));
+            $this->addIndex('nag_tasks', array('task_start'));
         }
 
         if (!in_array('nag_shares', $tableList)) {
@@ -64,11 +64,11 @@ class NagBaseTables extends Horde_Db_Migration_Base
             $t->primaryKey(array('share_id'));
             $t->end();
 
-            $this->addIndex('nag_shares', 'share_name');
-            $this->addIndex('nag_shares', 'share_owner');
-            $this->addIndex('nag_shares', 'perm_creator');
-            $this->addIndex('nag_shares', 'perm_default');
-            $this->addIndex('nag_shares', 'perm_guest');
+            $this->addIndex('nag_shares', array('share_name'));
+            $this->addIndex('nag_shares', array('share_owner'));
+            $this->addIndex('nag_shares', array('perm_creator'));
+            $this->addIndex('nag_shares', array('perm_default'));
+            $this->addIndex('nag_shares', array('perm_guest'));
         }
 
         if (!in_array('nag_shares_groups', $tableList)) {
@@ -78,9 +78,9 @@ class NagBaseTables extends Horde_Db_Migration_Base
             $t->column('perm', 'integer', array('limit' => 2, 'null' => false));
             $t->end();
 
-            $this->addIndex('nag_shares_groups', 'share_id');
-            $this->addIndex('nag_shares_groups', 'group_uid');
-            $this->addIndex('nag_shares_groups', 'perm');
+            $this->addIndex('nag_shares_groups', array('share_id'));
+            $this->addIndex('nag_shares_groups', array('group_uid'));
+            $this->addIndex('nag_shares_groups', array('perm'));
         }
 
         if (!in_array('nag_shares_users', $tableList)) {
@@ -90,9 +90,9 @@ class NagBaseTables extends Horde_Db_Migration_Base
             $t->column('perm', 'integer', array('limit' => 2, 'null' => false));
             $t->end();
 
-            $this->addIndex('nag_shares_users', 'share_id');
-            $this->addIndex('nag_shares_users', 'user_uid');
-            $this->addIndex('nag_shares_users', 'perm');
+            $this->addIndex('nag_shares_users', array('share_id'));
+            $this->addIndex('nag_shares_users', array('user_uid'));
+            $this->addIndex('nag_shares_users', array('perm'));
         }
     }
 
index fce2b20..375b8d7 100644 (file)
@@ -93,11 +93,11 @@ class TurbaBaseTables extends Horde_Db_Migration_Base
             $t->primaryKey(array('share_id'));
             $t->end();
 
-            $this->addIndex('turba_shares', 'share_name');
-            $this->addIndex('turba_shares', 'share_owner');
-            $this->addIndex('turba_shares', 'perm_creator');
-            $this->addIndex('turba_shares', 'perm_default');
-            $this->addIndex('turba_shares', 'perm_guest');
+            $this->addIndex('turba_shares', array('share_name'));
+            $this->addIndex('turba_shares', array('share_owner'));
+            $this->addIndex('turba_shares', array('perm_creator'));
+            $this->addIndex('turba_shares', array('perm_default'));
+            $this->addIndex('turba_shares', array('perm_guest'));
         }
 
         if (!in_array('turba_shares_groups', $tableList)) {
@@ -107,9 +107,9 @@ class TurbaBaseTables extends Horde_Db_Migration_Base
             $t->column('perm', 'integer', array('null' => false));
             $t->end();
 
-            $this->addIndex('turba_shares_groups', 'share_id');
-            $this->addIndex('turba_shares_groups', 'group_uid');
-            $this->addIndex('turba_shares_groups', 'perm');
+            $this->addIndex('turba_shares_groups', array('share_id'));
+            $this->addIndex('turba_shares_groups', array('group_uid'));
+            $this->addIndex('turba_shares_groups', array('perm'));
         }
 
         if (!in_array('turba_shares_users', $tableList)) {
@@ -120,9 +120,9 @@ class TurbaBaseTables extends Horde_Db_Migration_Base
             $t->column('perm', 'integer', array('null' => false));
             $t->end();
 
-            $this->addIndex('turba_shares_users', 'share_id');
-            $this->addIndex('turba_shares_users', 'user_uid');
-            $this->addIndex('turba_shares_users', 'perm');
+            $this->addIndex('turba_shares_users', array('share_id'));
+            $this->addIndex('turba_shares_users', array('user_uid'));
+            $this->addIndex('turba_shares_users', array('perm'));
         }
     }