From 093a53330f3e2a3ea06d0df2d44766c22ccae632 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 28 Jan 2011 21:34:57 +0100 Subject: [PATCH] Autoincrement --- .../Horde_History/2_horde_history_upgrade_autoincrement.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 framework/History/migration/Horde_History/2_horde_history_upgrade_autoincrement.php diff --git a/framework/History/migration/Horde_History/2_horde_history_upgrade_autoincrement.php b/framework/History/migration/Horde_History/2_horde_history_upgrade_autoincrement.php new file mode 100644 index 000000000..0a2b20ef7 --- /dev/null +++ b/framework/History/migration/Horde_History/2_horde_history_upgrade_autoincrement.php @@ -0,0 +1,13 @@ +changeColumn('horde_histories', 'history_id', 'integer', array('null' => false, 'unsigned' => true, 'default' => null, 'autoincrement' => true)); + } + + public function down() + { + $this->changeColumn('horde_histories', 'history_id', 'integer', array('null' => false, 'unsigned' => true)); + } +} \ No newline at end of file -- 2.11.0