finally found it, auto_increment -> autoincrement
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 7 Oct 2010 18:14:48 +0000 (14:14 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 7 Oct 2010 18:14:48 +0000 (14:14 -0400)
wicked/migration/1_wicked_base_tables.php
wicked/migration/3_wicked_unsigned_ints.php

index d938c28..28584f8 100644 (file)
@@ -23,7 +23,7 @@ class WickedBaseTables extends Horde_Db_Migration_Base
 
         if (!in_array('wicked_pages', $tableList)) {
             $t = $this->createTable('wicked_pages', array('primaryKey' => false));
-            $t->column('page_id', 'bigint', array('null' => false));
+            $t->column('page_id', 'integer', array('null' => false));
             $t->column('page_name', 'string', array('limit' => 100, 'null' => false));
             $t->column('page_text', 'text');
             $t->column('page_hits', 'integer', array('default' => 0));
index 4024765..531c35e 100644 (file)
@@ -19,7 +19,7 @@ class WickedUnsignedInts extends Horde_Db_Migration_Base
      */
     public function up()
     {
-        $this->changeColumn('wicked_pages', 'page_id', 'integer', array('auto_increment' => true, 'null' => false, 'unsigned' => true));
+        $this->changeColumn('wicked_pages', 'page_id', 'integer', array('autoincrement' => true, 'null' => false, 'unsigned' => true));
         $this->changeColumn('wicked_pages', 'page_hits', 'integer', array('default' => 0, 'unsigned' => true));
         $this->changeColumn('wicked_pages', 'page_majorversion', 'integer', array('null' => false, 'unsigned' => true));
         $this->changeColumn('wicked_pages', 'page_minorversion', 'integer', array('null' => false, 'unsigned' => true));