Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPGRADING.md v3: Add payload column type change #122

Merged
merged 1 commit into from May 16, 2022

Conversation

andzandz
Copy link
Contributor

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.

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.
@andzandz
Copy link
Contributor Author

Discussion: #121

@freekmurze freekmurze merged commit edc7f8d into spatie:main May 16, 2022
@freekmurze
Copy link
Member

Thanks!

@ankurk91
Copy link
Contributor

If you are using postgresql, you can use this code

 DB::statement('ALTER TABLE "webhook_calls" ALTER COLUMN "payload" TYPE JSON USING payload::JSON;');

since doctrine/dbal does not support this type of operation on postgres

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants