From dca9a062ed404d41e5be959dcd63f95de4419716 Mon Sep 17 00:00:00 2001 From: Nisarg Jhaveri Date: Tue, 29 Sep 2015 03:04:46 +0530 Subject: [PATCH] bug #11510, AUTO_INCREMENT value always shown in export Signed-off-by: Nisarg Jhaveri --- libraries/plugins/export/ExportSql.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/plugins/export/ExportSql.class.php b/libraries/plugins/export/ExportSql.class.php index c0b6aa5f01..69b00b38eb 100644 --- a/libraries/plugins/export/ExportSql.class.php +++ b/libraries/plugins/export/ExportSql.class.php @@ -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'); }