Merge pull request #11511 from nisargjhaveri/issue_11510

bug #11510, AUTO_INCREMENT value always shown in export
This commit is contained in:
Marc Delisle 2015-09-29 05:15:18 -04:00
commit a4fbbcc4d6

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');
}