Work with existing tables without deleting their contents when doing migrations
Hi guys,
I'd like to work with already existing data in the database.
Unfortunately the table is deleted once I apply the migration to make Laravel aware of the database layout.
Is there a way to work with data in already existing tables without deleting their contents?
Best regards,
Tom
Solution:Jump to solution
What do you mean by making aware? You can either skip a migration or add checks in the migration to see if tables / columns already exist. Migrations create/update tables, columns, indexes etc and thats it.
2 Replies
Solution
What do you mean by making aware? You can either skip a migration or add checks in the migration to see if tables / columns already exist. Migrations create/update tables, columns, indexes etc and thats it.
thanks. That was not clear to me.