mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
if the table names are not case sensitive this condition always things the table is hasn't been created.
This commit is contained in:
parent
032ea73154
commit
7e728a1fe2
@ -276,7 +276,7 @@ class Subsite extends DataObject
|
||||
|
||||
/** @skipUpgrade */
|
||||
$domainTableName = $schema->tableName(SubsiteDomain::class);
|
||||
if (!in_array($domainTableName, DB::table_list())) {
|
||||
if (!in_array(strtolower($domainTableName), array_map("strtolower", DB::table_list())) ) { // case sensitive table names
|
||||
// Table hasn't been created yet. Might be a dev/build, skip.
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user