RFE #639655 - Support changing auto_increment.
This commit is contained in:
@@ -6,6 +6,8 @@ $Id$
|
|||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
2003-03-12 Garvin Hicking <me@supergarv.de>
|
2003-03-12 Garvin Hicking <me@supergarv.de>
|
||||||
|
* tbl_properties_options.php3, tbl_properties_table_info.php3: Support changing
|
||||||
|
auto_increment value. (RFE #639655)
|
||||||
* db_printview.php3, tbl_printview.php3, db_datadict.php3, pdf_schema.php3:
|
* db_printview.php3, tbl_printview.php3, db_datadict.php3, pdf_schema.php3:
|
||||||
Display DB comments and MIME types, where appropriate.
|
Display DB comments and MIME types, where appropriate.
|
||||||
* header.inc.php3, querywindow.php3, libraries/common.lib.php3: Fixed some bugs for
|
* header.inc.php3, querywindow.php3, libraries/common.lib.php3: Fixed some bugs for
|
||||||
|
@@ -29,7 +29,8 @@ if (isset($submitoptions)) {
|
|||||||
$sql_query = 'ALTER TABLE ' . PMA_backquote($table)
|
$sql_query = 'ALTER TABLE ' . PMA_backquote($table)
|
||||||
. (isset($pack_keys) ? ' pack_keys=1': ' pack_keys=0')
|
. (isset($pack_keys) ? ' pack_keys=1': ' pack_keys=0')
|
||||||
. (isset($checksum) ? ' checksum=1': ' checksum=0')
|
. (isset($checksum) ? ' checksum=1': ' checksum=0')
|
||||||
. (isset($delay_key_write) ? ' delay_key_write=1': ' delay_key_write=0');
|
. (isset($delay_key_write) ? ' delay_key_write=1': ' delay_key_write=0')
|
||||||
|
. (isset($auto_increment) ? ' auto_increment=' . PMA_sqlAddslashes($auto_increment) : '');
|
||||||
$result = PMA_mysql_query($sql_query) or PMA_mysqlDie('', $sql_query, '', $err_url);
|
$result = PMA_mysql_query($sql_query) or PMA_mysqlDie('', $sql_query, '', $err_url);
|
||||||
$message = $strSuccess;
|
$message = $strSuccess;
|
||||||
}
|
}
|
||||||
@@ -39,13 +40,11 @@ if (isset($message)) {
|
|||||||
PMA_showMessage($message);
|
PMA_showMessage($message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets tables informations and displays top links
|
* Gets tables informations and displays top links
|
||||||
*/
|
*/
|
||||||
require('./tbl_properties_table_info.php3');
|
require('./tbl_properties_table_info.php3');
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays form controls
|
* Displays form controls
|
||||||
*/
|
*/
|
||||||
@@ -147,25 +146,26 @@ if (PMA_MYSQL_INT_VERSION >= 32322) {
|
|||||||
<form method="post" action="tbl_properties_options.php3">
|
<form method="post" action="tbl_properties_options.php3">
|
||||||
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
|
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
|
||||||
|
|
||||||
<table border="0" cellspacing="0" cellpadding="0">
|
<table border="0" cellspacing="1" cellpadding="1">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td align="right"><input type="checkbox" name="pack_keys" id="pack_keys_opt"
|
||||||
<input type="checkbox" name="pack_keys" id="pack_keys_opt"
|
<?php echo (isset($pack_keys) && $pack_keys == 1) ? ' checked="checked"' : ''; ?> /></td>
|
||||||
<?php echo (isset($pack_keys) && $pack_keys == 1) ? ' checked="checked"' : ''; ?> />
|
<td><label for="pack_keys_opt">pack_keys</label> </td>
|
||||||
<label for="pack_keys_opt">pack_keys</label>
|
</tr>
|
||||||
<br />
|
<tr>
|
||||||
<input type="checkbox" name="checksum" id="checksum_opt"
|
<td align="right"><input type="checkbox" name="checksum" id="checksum_opt"
|
||||||
<?php echo (isset($checksum) && $checksum == 1) ? ' checked="checked"' : ''; ?> />
|
<?php echo (isset($checksum) && $checksum == 1) ? ' checked="checked"' : ''; ?> /></td>
|
||||||
<label for="checksum_opt">checksum</label>
|
<td><label for="checksum_opt">checksum</label> </td>
|
||||||
<br />
|
</tr>
|
||||||
<input type="checkbox" name="delay_key_write" id="delay_key_write_opt"
|
<tr>
|
||||||
<?php echo (isset($delay_key_write) && $delay_key_write == 1) ? ' checked="checked"' : ''; ?> />
|
<td align="right"><input type="checkbox" name="delay_key_write" id="delay_key_write_opt"
|
||||||
<label for="delay_key_write_opt">delay_key_write</label>
|
<?php echo (isset($delay_key_write) && $delay_key_write == 1) ? ' checked="checked"' : ''; ?> /></td>
|
||||||
|
<td><label for="delay_key_write_opt">delay_key_write</label> </td>
|
||||||
</td>
|
</tr>
|
||||||
<td>
|
<tr>
|
||||||
<input type="submit" name="submitoptions" value="<?php echo $strGo; ?>" />
|
<td><input type="text" name="auto_increment" id="auto_increment_opt" class="textfield" style="width: 30px"
|
||||||
</td>
|
<?php echo (isset($auto_increment) && !empty($auto_increment) ? ' value="' . $auto_increment . '"' : ''); ?> /></td>
|
||||||
|
<td valign="top"><label for="auto_increment_opt">auto_increment</label> <input type="submit" name="submitoptions" value="<?php echo $strGo; ?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
|
@@ -16,6 +16,7 @@ if (PMA_MYSQL_INT_VERSION >= 32303) {
|
|||||||
$tbl_type = strtoupper($showtable['Type']);
|
$tbl_type = strtoupper($showtable['Type']);
|
||||||
$table_info_num_rows = (isset($showtable['Rows']) ? $showtable['Rows'] : 0);
|
$table_info_num_rows = (isset($showtable['Rows']) ? $showtable['Rows'] : 0);
|
||||||
$show_comment = (isset($showtable['Comment']) ? $showtable['Comment'] : '');
|
$show_comment = (isset($showtable['Comment']) ? $showtable['Comment'] : '');
|
||||||
|
$auto_increment = (isset($showtable['Auto_increment']) ? $showtable['Auto_increment'] : '');
|
||||||
|
|
||||||
$tmp = explode(' ', $showtable['Create_options']);
|
$tmp = explode(' ', $showtable['Create_options']);
|
||||||
$tmp_cnt = count($tmp);
|
$tmp_cnt = count($tmp);
|
||||||
|
Reference in New Issue
Block a user