if the table names are not case sensitive this condition always things the table is hasn't been created.

This commit is contained in:
Nivanka Fonseka 2018-06-01 16:06:59 +05:30
parent 032ea73154
commit 7e728a1fe2

View File

@ -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;
}