// Check if at least one table with same prefix already exists in new installer

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12194 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-01-05 14:28:10 +00:00
parent 4ab6988b63
commit 9d7ec6da61
5 changed files with 93 additions and 2 deletions
+4
View File
@@ -66,6 +66,10 @@ class InstallModelDatabase extends InstallAbstractModel
case 0:
if (!Db::checkEncoding($server, $login, $password))
$errors[] = $this->language->l('Cannot convert database data to utf-8');
// Check if a table with same prefix already exists
if (Db::hasTableWithSamePrefix($server, $login, $password, $database, $prefix))
$errors[] = $this->language->l('At least one table with same prefix was already found, please change your prefix or drop your database');
break;
case 1: