bug #11510, AUTO_INCREMENT value always shown in export

Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
This commit is contained in:
Nisarg Jhaveri 2015-09-29 03:04:46 +05:30
parent 2e2279b160
commit dca9a062ed

View File

@ -1730,7 +1730,8 @@ class ExportSql extends ExportPlugin
// Removing the `AUTO_INCREMENT` attribute from the `CREATE TABLE`
// too.
if (!empty($statement->entityOptions)
&& empty($GLOBALS['sql_if_not_exists'])
&& (empty($GLOBALS['sql_if_not_exists'])
|| empty($GLOBALS['sql_auto_increment']))
) {
$statement->entityOptions->remove('AUTO_INCREMENT');
}