auto_increment next value is included since MySQL 5.0.23
This commit is contained in:
parent
1d4e05f768
commit
6aa454a1aa
@ -196,11 +196,14 @@ foreach ($dblist as $each_db) {
|
||||
</select>
|
||||
<b>.</b>
|
||||
<input type="text" size="20" name="new_name" onfocus="this.select()"
|
||||
value="<?php echo htmlspecialchars($GLOBALS['table']); ?>" /><br />
|
||||
<input type="checkbox" name="sql_auto_increment" value="1" id="checkbox_auto_increment" checked="checked" />
|
||||
<label for="checkbox_auto_increment"><?php echo $strAddAutoIncrement; ?></label><br />
|
||||
</fieldset>
|
||||
<fieldset class="tblFooters">
|
||||
value="<?php echo htmlspecialchars($GLOBALS['table']); ?>" />
|
||||
<?php
|
||||
// after MySQL 5.0.22, SHOW CREATE TABLE includes the AUTO_INCREMENT
|
||||
// next value of the table so we won't have to add it ourselves
|
||||
if (PMA_MYSQL_INT_VERSION < 50023) {
|
||||
echo '<input type="hidden" name="sql_auto_increment" value="1" />' . "\n";
|
||||
}
|
||||
?>
|
||||
<input type="submit" name="submit_move" value="<?php echo $strGo; ?>" />
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user