phpartisan migrate:fresh
is not possible.
The following error will appear during execution.
I would like to know the possible cause.
SQLSTATE [42S21]: Column already exists: 1060 Duplicate column name 'user_id' (SQL: alt table `tasks` add `user_id` int not null)
As you can see in the error message, the tasks table already has a column called user_id, but there is a migration that is trying to add more columns with the same name and it is failing.
© 2024 OneMinuteCode. All rights reserved.