autoincrement implies not null
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 2 Nov 2010 17:43:37 +0000 (11:43 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 2 Nov 2010 18:04:39 +0000 (12:04 -0600)
turba/migration/2_turba_upgrade_autoincrement.php

index 5ce04d6..797577e 100644 (file)
@@ -19,7 +19,7 @@ class TurbaUpgradeAutoIncrement extends Horde_Db_Migration_Base
      */
     public function up()
     {
-        $this->changeColumn('turba_shares', 'share_id', 'integer', array('null' => false, 'autoincrement' => true));
+        $this->changeColumn('turba_shares', 'share_id', 'integer', array('autoincrement' => true));
     }
 
     /**
@@ -27,7 +27,7 @@ class TurbaUpgradeAutoIncrement extends Horde_Db_Migration_Base
      */
     public function down()
     {
-        $this->changeColumn('turba_shares', 'share_id', 'integer', array('null' => false));
+        $this->changeColumn('turba_shares', 'share_id', 'integer', array('autoincrement' => false));
     }
 
-}
\ No newline at end of file
+}