looks like you need to specify a null default value here or Horde_Db complains
authorMichael J Rubinsky <mrubinsk@horde.org>
Thu, 16 Dec 2010 23:47:05 +0000 (18:47 -0500)
committerMichael J Rubinsky <mrubinsk@horde.org>
Thu, 16 Dec 2010 23:50:03 +0000 (18:50 -0500)
ansel/migration/2_ansel_upgrade_autoincrement.php

index 50a0a4a..e4065ff 100644 (file)
@@ -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
+}