mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Fixed Database->requireTable() for Mysql 4.1 (fixes #5517, thanks gw0)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@103957 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e3a56a0600
commit
f3e01c98b7
@ -284,7 +284,7 @@ abstract class SS_Database {
|
||||
if(preg_match('/ENGINE=([^\s]*)/', $options[get_class($this)], $alteredEngineMatches)) {
|
||||
$alteredEngine = $alteredEngineMatches[1];
|
||||
$tableStatus = DB::query(sprintf(
|
||||
'SHOW TABLE STATUS WHERE "Name" = \'%s\'',
|
||||
'SHOW TABLE STATUS LIKE \'%s\'',
|
||||
$table
|
||||
))->first();
|
||||
$tableOptionsChanged = ($tableStatus['Engine'] != $alteredEngine);
|
||||
|
Loading…
Reference in New Issue
Block a user