Here is the code to reproduce this problem, adopted from
https://github.com/doctrine/dbal/blob/057c07ba0f794bde965818d14542f7610bebb6a8/tests/Doctrine/Tests/DBAL/Platforms/AbstractMySQLPlatformTestCase.php#L339:
$table = new Table("drop_primary_key");
$table->addColumn('id', 'integer', array('primary' => true,
'autoincrement' => true));
// $table->addColumn('foo', 'integer', array('primary' => true));
$table->addColumn('foo', 'integer');
// $table->setPrimaryKey(array('id', 'foo'));
$table->setPrimaryKey(array('id'));
$this->_sm->dropAndCreateTable($table);
$diffTable = clone $table;
$diffTable->dropPrimaryKey();
$diffTable->setPrimaryKey(array('foo'));
I believe the fix for DBAL-464 may only have been partial as it relies on a
two-column PK for the test?
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.