BUGFIX fixed reference to incorrect class

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@94061 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Tom Rix 2009-11-30 21:47:16 +00:00 committed by Sam Minnee
parent 4ca6a29aad
commit e3c1ec7fe3

View File

@ -282,7 +282,7 @@ class MySQLDatabase extends SS_Database {
public function checkAndRepairTable($tableName) {
if(!$this->runTableCheckCommand("CHECK TABLE \"$tableName\"")) {
if($this->runTableCheckCommand("CHECK TABLE \"".strtolower($tableName)."\"")){
Database::alteration_message("Table $tableName: renamed from lowercase","repaired");
DB::alteration_message("Table $tableName: renamed from lowercase","repaired");
return $this->renameTable(strtolower($tableName),$tableName);
}