bug #11510, AUTO_INCREMENT value always shown in export
Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
This commit is contained in:
parent
2e2279b160
commit
dca9a062ed
@ -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');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user