Skip to content

Commit 14906dc

Browse files
authored
Merge pull request #455 from dbarzin/dev
fix migration
2 parents 71aeefe + 7f986cf commit 14906dc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

database/migrations/2025_05_27_152856_change_actions.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ public function down()
4949
$table->string('type')->nullable()->change();
5050
});
5151
}
52-
Schema::table('actions', function (Blueprint $table) {
53-
$table->dropColumn('progress');
54-
});
52+
if (Schema::hasColumn('actions', 'progress')) {
53+
Schema::table('actions', function (Blueprint $table) {
54+
$table->dropColumn('progress');
55+
});
56+
}
5557
}
5658
};

0 commit comments

Comments
 (0)