osaev's avatar
Level 28

[5.1.6] Migration can not create column

Hello, I try to add a column to table that is already exists. https://github.com/laravel/framework/issues/9550 This is my issue in github.
First of all i think is a bug in migration. If you follow the conversation will find that i'm agree it's not. Here is a picture of my code - http://prntscr.com/7pu2wa and picture of the result http://prntscr.com/7pu3n2

edit 1: I'm using SQLITE

0 likes
5 replies
bobbybouwmann's avatar

Your code looks fine, are you sure you don't have another migration that is adding a table for you?

osaev's avatar
Level 28

No, I have no another migrations and fields.

frezno's avatar

for adding a column to an existing table, wouldn't be the syntax add_columnname_tablename_table and not update?

bobbybouwmann's avatar

I think it's running all your migrations at once... While it shouldn't! Can you confirm that you have a migrations table in your database?

osaev's avatar
Level 28

I change to to PGsql and it works.. Now Idea why....

Please or to participate in this conversation.