[Solved] Skipper creates table in migration wich already exists.

0 votes
asked Aug 13, 2020 in Solved by gldrenthe89 (230 points)
recategorized Aug 13, 2020 by ludek.vodicka

I have a problem. Skipper is creating a table in the Laravel migration (also a down migration wich drops the entire table) This is nog what it should do. this table already existed.
See 1st screenshot
Migration UP

this is the down migration
Migration Down

This is the current revision where i am working on.
Revision information

2 Answers

0 votes
answered Aug 13, 2020 by ludek.vodicka Skipper developer (140,450 points)
selected Aug 13, 2020 by gldrenthe89
 
Best answer

As discussed in email communication, this issue wasn't caused by bug in the Skipper but by wrong table name in a completely different entity.

Entity LoadBalancer had the wrong table name "servers" which caused conflict in migration.

enter image description here

To fix this issue simply update table name property to correct name and update last revision.

0 votes
answered Aug 13, 2020 by ludek.vodicka Skipper developer (140,450 points)

Hi, I'm not sure I understand the problem.

Why the table already exists? Did you create it manually? Or did Skipper export some duplicated migration where table is created twice?

Can you share your project so we can test it here?

commented Aug 13, 2020 by ludek.vodicka Skipper developer (140,450 points)

And one more question, what version are you using?

You can try our latest beta with a lot of migration fixes here:

https://www.skipper18.com/support/402/downloads-skipper-beta

commented Aug 13, 2020 by gldrenthe89 (230 points)

I am using application version: 3.2.24.1662

commented Aug 13, 2020 by ludek.vodicka Skipper developer (140,450 points)

Ok, please test the mentioned beta. If this didn't help, I will need more details about why is it a problem that the table is created.

commented Aug 13, 2020 by gldrenthe89 (230 points)

The table already existed when i did the import of existing project. this is the only table skipper is trying to create. as you can see in the revision it only states that i wil create 1 new column. not create a whole new table. but the migration created does different.

How can i send you the project?

commented Aug 13, 2020 by gldrenthe89 (230 points)

Same issue with beta: 3.2.25.1686

commented Aug 13, 2020 by ludek.vodicka Skipper developer (140,450 points)

If you imported the existing projects from database, it's ok that Skipper is now trying to create the migration.

It's because Skipper doesn't know whether you need to create it or not.

But you can select initial imported migration to not be exported to database by managing migrations and select "Enable/disable revision"

enter image description here

Thanks for this feedback. We will improve import process so Skipper will ask you whether to mark migration with existing tables as non-exportable.

commented Aug 13, 2020 by gldrenthe89 (230 points)

The original import is not exported. Then there also would be more tables created. that is not the case. It is only with this specific table.

How can i send you the project?

commented Aug 13, 2020 by ludek.vodicka Skipper developer (140,450 points)

send skipper project files to [email protected]. Thanks

...