Reread table information after change, so that rendered page contains change, that has been just done.
This commit is contained in:
@@ -9,6 +9,8 @@ $Source$
|
|||||||
* lang/english: "Log in" is correct naming for action (RFE #945440).
|
* lang/english: "Log in" is correct naming for action (RFE #945440).
|
||||||
* tbl_properties_operations.php: Allow to change auto_increment for
|
* tbl_properties_operations.php: Allow to change auto_increment for
|
||||||
InnoDB, supported since MySQL 5.0.3 (bug #1337873).
|
InnoDB, supported since MySQL 5.0.3 (bug #1337873).
|
||||||
|
* tbl_properties_operations.php: Reread table information after change, so
|
||||||
|
that rendered page contains change, that has been just done.
|
||||||
|
|
||||||
2005-10-24 Michal Čihař <michal@cihar.com>
|
2005-10-24 Michal Čihař <michal@cihar.com>
|
||||||
* tbl_properties_operations.php: Fix changing table attributes, reread new
|
* tbl_properties_operations.php: Fix changing table attributes, reread new
|
||||||
|
@@ -26,6 +26,8 @@ require_once('./libraries/storage_engines.lib.php');
|
|||||||
// the calling of relation.lib.php)
|
// the calling of relation.lib.php)
|
||||||
PMA_DBI_select_db($db);
|
PMA_DBI_select_db($db);
|
||||||
|
|
||||||
|
$reread_info = FALSE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates table comment, type and options if required
|
* Updates table comment, type and options if required
|
||||||
*/
|
*/
|
||||||
@@ -34,12 +36,14 @@ if (isset($submitcomment)) {
|
|||||||
$sql_query = 'ALTER TABLE ' . PMA_backquote($table) . ' COMMENT = \'' . PMA_sqlAddslashes($comment) . '\'';
|
$sql_query = 'ALTER TABLE ' . PMA_backquote($table) . ' COMMENT = \'' . PMA_sqlAddslashes($comment) . '\'';
|
||||||
$result = PMA_DBI_query($sql_query);
|
$result = PMA_DBI_query($sql_query);
|
||||||
$message = $strSuccess;
|
$message = $strSuccess;
|
||||||
|
$reread_info = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isset($submittype)) {
|
if (isset($submittype)) {
|
||||||
$sql_query = 'ALTER TABLE ' . PMA_backquote($table) . ' TYPE = ' . $new_tbl_type;
|
$sql_query = 'ALTER TABLE ' . PMA_backquote($table) . ' TYPE = ' . $new_tbl_type;
|
||||||
$result = PMA_DBI_query($sql_query);
|
$result = PMA_DBI_query($sql_query);
|
||||||
$message = $strSuccess;
|
$message = $strSuccess;
|
||||||
|
$reread_info = TRUE;
|
||||||
}
|
}
|
||||||
if (isset($submitcollation)) {
|
if (isset($submitcollation)) {
|
||||||
// since something modifies $tbl_collation between the moment it is
|
// since something modifies $tbl_collation between the moment it is
|
||||||
@@ -50,6 +54,7 @@ if (isset($submitcollation)) {
|
|||||||
$result = PMA_DBI_query($sql_query);
|
$result = PMA_DBI_query($sql_query);
|
||||||
$message = $strSuccess;
|
$message = $strSuccess;
|
||||||
unset($tbl_collation);
|
unset($tbl_collation);
|
||||||
|
$reread_info = TRUE;
|
||||||
}
|
}
|
||||||
if (isset($submitoptions)) {
|
if (isset($submitoptions)) {
|
||||||
$sql_query = 'ALTER TABLE ' . PMA_backquote($table);
|
$sql_query = 'ALTER TABLE ' . PMA_backquote($table);
|
||||||
@@ -65,8 +70,13 @@ if (isset($submitoptions)) {
|
|||||||
}
|
}
|
||||||
$result = PMA_DBI_query($sql_query);
|
$result = PMA_DBI_query($sql_query);
|
||||||
$message = $strSuccess;
|
$message = $strSuccess;
|
||||||
|
$reread_info = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($reread_info) {
|
||||||
require('./tbl_properties_table_info.php');
|
require('./tbl_properties_table_info.php');
|
||||||
}
|
}
|
||||||
|
unset($reread_info);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reordering the table has been requested by the user
|
* Reordering the table has been requested by the user
|
||||||
|
Reference in New Issue
Block a user