Bug : suppression du quota de BDD a la supression de la bdd

Xals : a merger
This commit is contained in:
Alan Garcia 2011-07-29 07:19:45 +00:00
parent 5d213d7420
commit 751326f7b7
1 changed files with 1 additions and 0 deletions

View File

@ -193,6 +193,7 @@ class m_mysql {
$login=$db->f("login"); $login=$db->f("login");
// Ok, database exists and dbname is compliant. Let's proceed // Ok, database exists and dbname is compliant. Let's proceed
$db->query("DELETE FROM size_db WHERE db='$dbname';");
$db->query("DELETE FROM db WHERE uid='$cuid' AND db='$dbname';"); $db->query("DELETE FROM db WHERE uid='$cuid' AND db='$dbname';");
$db->query("DROP DATABASE `$dbname`;"); $db->query("DROP DATABASE `$dbname`;");
$db->query("SELECT COUNT(*) AS cnt FROM db WHERE uid='$cuid';"); $db->query("SELECT COUNT(*) AS cnt FROM db WHERE uid='$cuid';");