towhid
448
19
Laravel

SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'user_id' (SQL: alter table `posts` add `user_id` int not null)

Posted 8 months ago by towhid

i was create add_user_Id_to_posts - and migrate complete

but when i am trying to another column add_cover_Image_to_posts then show this error SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'user_id' (SQL: alter table posts add user_id int not null) whats the problem ?

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.