Fix variable; provide downgrade path (even though it won't work in backend yet)
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 28 May 2010 16:21:04 +0000 (10:21 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 28 May 2010 16:21:04 +0000 (10:21 -0600)
imp/migration/2_imp_autoincrement_sentmail.php

index f03ebba..9c415cd 100644 (file)
@@ -19,7 +19,7 @@ class ImpAutoIncrementSentmail extends Horde_Db_Migration_Base
      */
     public function up()
     {
-        $t->changeColumn('imp_sentmail', 'sentmail_id', 'integer', array('autoincrement' => true));
+        $this->changeColumn('imp_sentmail', 'sentmail_id', 'integer', array('autoincrement' => true));
     }
 
     /**
@@ -27,7 +27,7 @@ class ImpAutoIncrementSentmail extends Horde_Db_Migration_Base
      */
     public function down()
     {
-        // No way to downgrade at this time.
+        $this->changeColumn('imp_sentmail', 'sentmail_id', 'bigint', array('autoincrement' => false));
     }
 
 }