F
FilamentObi Wan Kenobi

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
TVH
Tim van Heugten44d ago
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.
OWK
Obi Wan Kenobi44d ago
thanks. That was not clear to me.