When your app evolves, its data structure evolves too: a new “phone” column, a new “appointments” table… Each structure change is recorded as a migration.
Why it matters
Picture the successive plans of a house being extended: each plan shows a room added or changed. Migrations form the structure history of your database in the same way. Thanks to them:
- the test database and the live database stay consistent with the code;
- the live database is updated cleanly at publication;
- the test database can be rebuilt at any time.
Delicate changes
Deleting a column or a table can make real data disappear. In that case, Kovos flags the point in orange before publication and waits for your explicit confirmation.
All this is automatic: you never have to write a migration yourself.