Closed CHEWX closed 2 years ago
If I delete the charges table and re-run.
Migrating: 2020_01_29_231006_create_charges_table
Illuminate\Database\QueryException
SQLSTATE[HY000]: General error: 1215 Unknown error 1215 (SQL: alter table `charges` add constraint `charges_user_id_foreign` foreign key (`user_id`) references `users` (`id`) on delete cascade)
Have you set up your database and are you using mysql?
Deleting the table and trying to rerun will cause the error, as there will be a foreign key on users already from the migration and will try to add it again.
I would rollback and start again, rather than delete directly as you will break the migration intended purpose.
Closing as the ticket is stale. Re-open if issue persists.
For bug reporting only! If you're posting a feature request or discussion, please ignore.
Expected Behavior
Running
php artisan migrate
to successfully run.Current Behavior
Hitting an error, only with this package required, I removed and test and it successfully worked.
Failure Information
Please help provide information about the failure if this is a bug.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
composer require osiset/laravel-shopify
php artisan migrate