From 3aa1ef6451db0758c6a0eaf6b344e120a79550c2 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 9 Oct 2010 15:53:38 -0400 Subject: [PATCH] fix column type, these were integers, not bigints --- ingo/migration/1_ingo_base_tables.php | 2 +- ingo/migration/2_ingo_upgrade_autoincrement.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ingo/migration/1_ingo_base_tables.php b/ingo/migration/1_ingo_base_tables.php index 7ec0e029f..17986744e 100644 --- a/ingo/migration/1_ingo_base_tables.php +++ b/ingo/migration/1_ingo_base_tables.php @@ -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)); diff --git a/ingo/migration/2_ingo_upgrade_autoincrement.php b/ingo/migration/2_ingo_upgrade_autoincrement.php index 053ee1acb..0b859d22b 100644 --- a/ingo/migration/2_ingo_upgrade_autoincrement.php +++ b/ingo/migration/2_ingo_upgrade_autoincrement.php @@ -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)); } -- 2.11.0