laravel / cashier-stripe

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.
https://laravel.com/docs/billing
MIT License
2.37k stars 671 forks source link

Migrations clash #718

Closed okydk closed 5 years ago

okydk commented 5 years ago

Description:

The new included package migrations clash with existing tables. Specifically subscriptions and columns on users which already exists, which could be circumvented if checked beforehand. Otherwise custom migrations would need to be included before and after 2019_05_03_000001_create_customer_columns and 2019_05_03_000002_create_subscriptions_table?

Steps To Reproduce:

Migrate an old setup prior to 10.0.

okydk commented 5 years ago

Just found the Cashier::ignoreMigrations(); which can be combined with a custom migration.

driesvints commented 5 years ago

Also make sure to read the upcoming migration guide. It includes a part about the migrations: https://github.com/laravel/cashier/blob/upgrade-guide/UPGRADE.md#upgrading-to-100-from-90

Gigamick commented 4 years ago

@driesvints - that link is no longer working. I'm having this same issue, are there steps to resolve anywhere?

@okydk