Skip to content

Commit edc7f8d

Browse files
authored
UPGRADING.md v3: Add payload column type change (#122)
For anyone upgrading from v2 to v3, this change is required because e.g. https://github.com/spatie/laravel-stripe-webhooks/blob/main/src/StripeWebhookProfile.php uses a json operator on the payload column.
1 parent c406287 commit edc7f8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

UPGRADING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class AddColumnsToWebhookCalls extends Migration
4040
Schema::table('webhook_calls', function (Blueprint $table) {
4141
$table->string('url')->nullable();
4242
$table->json('headers')->nullable();
43+
$table->json('payload')->change();
4344
});
4445
}
4546

@@ -53,6 +54,7 @@ class AddColumnsToWebhookCalls extends Migration
5354
Schema::table('webhook_calls', function (Blueprint $table) {
5455
$table->dropColumn('url');
5556
$table->dropColumn('headers');
57+
$table->text('payload')->change();
5658
});
5759
}
5860
}

0 commit comments

Comments
 (0)