Skip to content

Commit 3017668

Browse files
Make schedule history migration idempotent
1 parent 6022bf0 commit 3017668

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/migrations/2026_04_16_000180_create_workflow_schedule_history_events_table.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727

2828
public function up(): void
2929
{
30+
if (Schema::hasTable(self::TABLE)) {
31+
return;
32+
}
33+
3034
Schema::create(self::TABLE, static function (Blueprint $table): void {
3135
$table->string('id', 26)
3236
->primary();

0 commit comments

Comments
 (0)