From: Michael J. Rubinsky Date: Thu, 7 Oct 2010 17:47:54 +0000 (-0400) Subject: Fix primary key generation for wicked X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=48617020fd9a372c86a3837384a15928da918746;p=horde.git Fix primary key generation for wicked --- diff --git a/wicked/migration/1_wicked_base_tables.php b/wicked/migration/1_wicked_base_tables.php index 477876eeb..aba64102b 100644 --- a/wicked/migration/1_wicked_base_tables.php +++ b/wicked/migration/1_wicked_base_tables.php @@ -22,7 +22,8 @@ class WickedBaseTables extends Horde_Db_Migration_Base $tableList = $this->tables(); if (!in_array('wicked_pages', $tableList)) { - $t = $this->createTable('wicked_pages', array('primaryKey' => 'page_id')); + $t = $this->createTable('wicked_pages', array('primaryKey' => false)); + $t->column('page_id', 'bigint', 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)); @@ -31,6 +32,7 @@ class WickedBaseTables extends Horde_Db_Migration_Base $t->column('version_created', 'integer', array('null' => false)); $t->column('change_author', 'string'); $t->column('change_log', 'text'); + $t->primaryKey('page_id'); $t->end(); $this->addIndex('wicked_pages', array('page_name'), array('unique' => true));