phpartisan migrate: Cannot refresh

Asked 2 years ago, Updated 2 years ago, 39 views

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)

laravel

2022-09-29 22:31

1 Answers

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.


2022-09-29 22:31

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.