From: Michael J Rubinsky Date: Thu, 16 Dec 2010 23:47:05 +0000 (-0500) Subject: looks like you need to specify a null default value here or Horde_Db complains X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=326904cfa6a45a6b16e67de59339d6a3ddbac84a;p=horde.git looks like you need to specify a null default value here or Horde_Db complains --- diff --git a/ansel/migration/2_ansel_upgrade_autoincrement.php b/ansel/migration/2_ansel_upgrade_autoincrement.php index 50a0a4ae3..e4065ff5b 100644 --- a/ansel/migration/2_ansel_upgrade_autoincrement.php +++ b/ansel/migration/2_ansel_upgrade_autoincrement.php @@ -16,10 +16,10 @@ class AnselUpgradeAutoIncrement extends Horde_Db_Migration_Base { public function up() { - $this->changeColumn('ansel_images', 'image_id', 'integer', array('null' => false, 'autoincrement' => true)); - $this->changeColumn('ansel_faces', 'face_id', 'integer', array('null' => false, 'autoincrement' => true)); - $this->changeColumn('ansel_shares', 'share_id', 'integer', array('null' => false, 'autoincrement' => true)); - $this->changeColumn('ansel_tags', 'tag_id', 'integer', array('null' => false, 'autoincrement' => true)); + $this->changeColumn('ansel_images', 'image_id', 'integer', array('null' => false, 'autoincrement' => true, 'default' => null)); + $this->changeColumn('ansel_faces', 'face_id', 'integer', array('null' => false, 'autoincrement' => true, 'default' => null)); + $this->changeColumn('ansel_shares', 'share_id', 'integer', array('null' => false, 'autoincrement' => true, 'default' => null)); + $this->changeColumn('ansel_tags', 'tag_id', 'integer', array('null' => false, 'autoincrement' => truei, 'default' => null)); } public function down() @@ -35,4 +35,4 @@ class AnselUpgradeAutoIncrement extends Horde_Db_Migration_Base } } -} \ No newline at end of file +}