Open
Description
Bug Report
Q | A |
---|---|
BC Break | no |
Version | 3.1.3 |
Summary
The SQL for changing the MySQL table engine isn't generated if this is the only change for the table, e.g. from MyISAM to InnoDB
Current behaviour
No SQL statement for changing the MySQL table engine is generated
How to reproduce
$platform = $conn->getDatabasePlatform();
$schema = $schemaManager->createSchema();
$modifiedSchema = clone $schema;
$modifiedSchema->getTable( 'testtable' )->addOption( 'engine', 'InnoDB' );
$sql = $schema->getMigrateToSql( $modifiedSchema, $platform );
Expected behaviour
Should generate SQL statement:
ALTER TABLE testtable ENGINE=InnoDB