FIX: Use the correct classname to check for a repair

This re-enables correcting the case of tables, mostly used after an import from MySQL running on Windows.

Fixes #2713
This commit is contained in:
Simon Welsh 2014-01-12 07:15:17 +13:00
parent f433b5000f
commit 5e3420a640

View File

@ -326,7 +326,7 @@ abstract class SS_Database {
$this->transCreateTable($table, $options, $extensions);
$this->alterationMessage("Table $table: created","created");
} else {
if(Config::inst()->get('Database', 'check_and_repair_on_build')) {
if(Config::inst()->get('SS_Database', 'check_and_repair_on_build')) {
$this->checkAndRepairTable($table, $options);
}
@ -1050,4 +1050,4 @@ abstract class SS_Database {
public function releaseLock($name) {
return false;
}
}
}