sql_auto_increment is about auto increment value
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
parent
da1d274078
commit
f5a02f0eca
@ -1687,15 +1687,17 @@ class ExportSql extends ExportPlugin
|
||||
}
|
||||
|
||||
// Generating auto-increment-related query.
|
||||
if ((isset($GLOBALS['sql_auto_increment']))
|
||||
&& (! empty($auto_increment))
|
||||
if ((! empty($auto_increment))
|
||||
&& ($update_indexes_increments)
|
||||
&& ($statement->entityOptions->has('AUTO_INCREMENT') !== false)
|
||||
) {
|
||||
$sql_auto_increments_query = $alter_header .
|
||||
$crlf . ' MODIFY ' . implode(',' . $crlf . ' MODIFY ', $auto_increment) .
|
||||
', AUTO_INCREMENT=' . $statement->entityOptions->has('AUTO_INCREMENT')
|
||||
. $alter_footer;
|
||||
$crlf . ' MODIFY ' . implode(',' . $crlf . ' MODIFY ', $auto_increment);
|
||||
if (isset($GLOBALS['sql_auto_increment'])) {
|
||||
$sql_auto_increments_query .= ', AUTO_INCREMENT='
|
||||
. $statement->entityOptions->has('AUTO_INCREMENT');
|
||||
}
|
||||
$sql_auto_increments_query .= $alter_footer;
|
||||
|
||||
$sql_auto_increments = $this->generateComment(
|
||||
$crlf, $sql_auto_increments,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user