Fix - Respect the Auto increment checkbox

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
Madhura Jayaratne 2015-08-20 10:24:29 +05:30
parent 769a8aa15f
commit da1d274078

View File

@ -268,7 +268,6 @@ class ExportSql extends ExportPlugin
$leaf->setText(
sprintf(__('Add %s statement'), '<code>CREATE TABLE</code>')
);
$subgroup->addProperty($leaf);
$subgroup_create_table = new OptionsPropertySubgroup();
$subgroup_create_table->setSubgroupHeader($leaf);
@ -1688,7 +1687,8 @@ class ExportSql extends ExportPlugin
}
// Generating auto-increment-related query.
if ((!empty($auto_increment))
if ((isset($GLOBALS['sql_auto_increment']))
&& (! empty($auto_increment))
&& ($update_indexes_increments)
&& ($statement->entityOptions->has('AUTO_INCREMENT') !== false)
) {