Fix default value.
authorJan Schneider <jan@horde.org>
Wed, 26 Jan 2011 17:45:58 +0000 (18:45 +0100)
committerJan Schneider <jan@horde.org>
Wed, 26 Jan 2011 17:45:58 +0000 (18:45 +0100)
imp/migration/2_imp_autoincrement_sentmail.php
wicked/migration/2_wicked_autoincrement_page_id.php

index 9c415cd..f32b855 100644 (file)
@@ -19,7 +19,7 @@ class ImpAutoIncrementSentmail extends Horde_Db_Migration_Base
      */
     public function up()
     {
-        $this->changeColumn('imp_sentmail', 'sentmail_id', 'integer', array('autoincrement' => true));
+        $this->changeColumn('imp_sentmail', 'sentmail_id', 'integer', array('autoincrement' => true, 'default' => null));
     }
 
     /**
index e301e77..0cf8e13 100644 (file)
@@ -19,7 +19,7 @@ class WickedAutoIncrementPageId extends Horde_Db_Migration_Base
      */
     public function up()
     {
-        $this->changeColumn('wicked_pages', 'page_id', 'integer', array('autoincrement' => true));
+        $this->changeColumn('wicked_pages', 'page_id', 'integer', array('autoincrement' => true, 'default' => null));
         try {
             $this->dropTable('wicked_pages_seq');
         } catch (Horde_Db_Exception $e) {