You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-31 10:54:46 +03:00
Fix - Respect the Auto increment checkbox
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
@@ -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)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user