Commit bd2598b1 authored by Steve Müller's avatar Steve Müller

proper table naming

parent 87e2e0bd
...@@ -330,7 +330,7 @@ class MySqlPlatformTest extends AbstractPlatformTestCase ...@@ -330,7 +330,7 @@ class MySqlPlatformTest extends AbstractPlatformTestCase
*/ */
public function testAlterPrimaryKeyWithAutoincrementColumn() public function testAlterPrimaryKeyWithAutoincrementColumn()
{ {
$table = new Table("drop_primary_key"); $table = new Table("alter_primary_key");
$table->addColumn('id', 'integer', array('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'));
...@@ -343,9 +343,9 @@ class MySqlPlatformTest extends AbstractPlatformTestCase ...@@ -343,9 +343,9 @@ class MySqlPlatformTest extends AbstractPlatformTestCase
$this->assertEquals( $this->assertEquals(
array( array(
'ALTER TABLE drop_primary_key MODIFY id INT NOT NULL', 'ALTER TABLE alter_primary_key MODIFY id INT NOT NULL',
'ALTER TABLE drop_primary_key DROP PRIMARY KEY', 'ALTER TABLE alter_primary_key DROP PRIMARY KEY',
'ALTER TABLE drop_primary_key ADD PRIMARY KEY (foo)' 'ALTER TABLE alter_primary_key ADD PRIMARY KEY (foo)'
), ),
$this->_platform->getAlterTableSQL($comparator->diffTable($table, $diffTable)) $this->_platform->getAlterTableSQL($comparator->diffTable($table, $diffTable))
); );
......
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