bug #1230224, db rename and old pmadb information

This commit is contained in:
Marc Delisle
2005-07-02 12:15:59 +00:00
parent 0f49f78aa6
commit 9b1abcc555
2 changed files with 7 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2005-07-02 Marc Delisle <lem9@users.sourceforge.net>
* db_operations.php: bug #1230224, db rename and old pmadb information
2005-07-01 Marc Delisle <lem9@users.sourceforge.net> 2005-07-01 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html: patch #1229673, improvement to big-file-import * Documentation.html: patch #1229673, improvement to big-file-import
instructions, thanks to Isaac Bennetch - ibennetch instructions, thanks to Isaac Bennetch - ibennetch

View File

@@ -75,6 +75,10 @@ if (isset($db) &&
} }
if ($move) { if ($move) {
// cleanup pmadb stuff for this db
require_once('./libraries/relation_cleanup.lib.php');
PMA_relationsCleanupDatabase($db);
$local_query = 'DROP DATABASE ' . PMA_backquote($db) . ';'; $local_query = 'DROP DATABASE ' . PMA_backquote($db) . ';';
$sql_query .= "\n" . $local_query; $sql_query .= "\n" . $local_query;
PMA_DBI_query($local_query); PMA_DBI_query($local_query);