fix column type, these were integers, not bigints
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 9 Oct 2010 19:53:38 +0000 (15:53 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 9 Oct 2010 19:53:38 +0000 (15:53 -0400)
ingo/migration/1_ingo_base_tables.php
ingo/migration/2_ingo_upgrade_autoincrement.php

index 7ec0e02..1798674 100644 (file)
@@ -23,7 +23,7 @@ class IngoBaseTables extends Horde_Db_Migration_Base
 
         if (!in_array('ingo_rules', $tableList)) {
             $t = $this->createTable('ingo_rules', array('primaryKey' => false));
-            $t->column('rule_id', 'bigint', array('null' => false));
+            $t->column('rule_id', 'integer', array('null' => false));
             $t->column('rule_owner', 'string', array('limit' => 255, 'null' => false));
             $t->column('rule_name', 'string', array('limit' => 255, 'null' => false));
             $t->column('rule_action', 'integer', array('null' => false));
index 053ee1a..0b859d2 100644 (file)
@@ -19,7 +19,7 @@ class IngoUpgradeAutoIncrement extends Horde_Db_Migration_Base
      */
     public function up()
     {
-        $this->changeColumn('ingo_rules', 'rule_id', 'bigint', array('null' => false, 'autoincrement' => true));
+        $this->changeColumn('ingo_rules', 'rule_id', 'integer', array('null' => false, 'autoincrement' => true));
         $this->changeColumn('ingo_shares', 'share_id', 'integer', array('null' => false, 'autoincrement' => true));
     }
 
@@ -29,7 +29,7 @@ class IngoUpgradeAutoIncrement extends Horde_Db_Migration_Base
      */
     public function down()
     {
-        $this->changeColumn('ingo_rules', 'rule_id', 'bigint', array('null' => false));
+        $this->changeColumn('ingo_rules', 'rule_id', 'integer', array('null' => false));
         $this->changeColumn('ingo_shares', 'share_id', 'integer', array('null' => false));
     }