Commit 77efbbde authored by Steve Müller's avatar Steve Müller

proper table naming

parent 3da65d1a
...@@ -338,7 +338,7 @@ abstract class AbstractMySQLPlatformTestCase extends AbstractPlatformTestCase ...@@ -338,7 +338,7 @@ abstract class AbstractMySQLPlatformTestCase 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'));
...@@ -351,9 +351,9 @@ abstract class AbstractMySQLPlatformTestCase extends AbstractPlatformTestCase ...@@ -351,9 +351,9 @@ abstract class AbstractMySQLPlatformTestCase 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