Commit 2010be24 authored by andig's avatar andig Committed by Steve Müller

Clean invalid primary option

parent 5bfd170d
...@@ -331,7 +331,7 @@ class MySqlPlatformTest extends AbstractPlatformTestCase ...@@ -331,7 +331,7 @@ class MySqlPlatformTest extends AbstractPlatformTestCase
public function testAlterPrimaryKeyWithAutoincrementColumn() public function testAlterPrimaryKeyWithAutoincrementColumn()
{ {
$table = new Table("drop_primary_key"); $table = new Table("drop_primary_key");
$table->addColumn('id', 'integer', array('primary' => true, 'autoincrement' => true)); $table->addColumn('id', 'integer', array('autoincrement' => true));
$table->addColumn('foo', 'integer'); $table->addColumn('foo', 'integer');
$table->setPrimaryKey(array('id')); $table->setPrimaryKey(array('id'));
...@@ -357,8 +357,8 @@ class MySqlPlatformTest extends AbstractPlatformTestCase ...@@ -357,8 +357,8 @@ class MySqlPlatformTest extends AbstractPlatformTestCase
public function testDropPrimaryKeyWithAutoincrementColumn() public function testDropPrimaryKeyWithAutoincrementColumn()
{ {
$table = new Table("drop_primary_key"); $table = new Table("drop_primary_key");
$table->addColumn('id', 'integer', array('primary' => true, 'autoincrement' => true)); $table->addColumn('id', 'integer', array('autoincrement' => true));
$table->addColumn('foo', 'integer', array('primary' => true)); $table->addColumn('foo', 'integer');
$table->addColumn('bar', 'integer'); $table->addColumn('bar', 'integer');
$table->setPrimaryKey(array('id', 'foo')); $table->setPrimaryKey(array('id', 'foo'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment