Skip to content

Commit 62fdd54

Browse files
authored
Only run RelateFormSubmissionsByHandle when we have form submissions (#334)
1 parent 8c73ba9 commit 62fdd54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Updates/RelateFormSubmissionsByHandle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class RelateFormSubmissionsByHandle extends UpdateScript
99
{
1010
public function shouldUpdate($newVersion, $oldVersion)
1111
{
12-
return ! Schema::hasColumn(config('statamic.eloquent-driver.table_prefix', '').'form_submissions', 'form');
12+
return Schema::hasTable(config('statamic.eloquent-driver.table_prefix', '').'form_submissions') && ! Schema::hasColumn(config('statamic.eloquent-driver.table_prefix', '').'form_submissions', 'form');
1313
}
1414

1515
public function update()

0 commit comments

Comments
 (0)