Skip to content

Commit 3ec74ee

Browse files
Load model from config (#494)
* Load model from config * Exclude migration when sites driver is not eloquent * Fixed config key
1 parent f10158b commit 3ec74ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Updates/AddOrderToSitesTable.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ public function shouldUpdate($newVersion, $oldVersion)
1111
{
1212
$sitesTable = config('statamic.eloquent-driver.table_prefix', '').'sites';
1313

14-
return Schema::hasTable($sitesTable) && ! Schema::hasColumn($sitesTable, 'order');
14+
return config('statamic.eloquent-driver.sites.driver', 'file') === 'eloquent' &&
15+
Schema::hasTable($sitesTable) &&
16+
! Schema::hasColumn($sitesTable, 'order');
1517
}
1618

1719
public function update()

0 commit comments

Comments
 (0)