Skip to content

MySQL table engine not changed #4945

Open
@aimeos

Description

@aimeos

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions