Migrations
Apply and review
Review a pending migration and apply it to the database.
Open Migrations, select a file with status Pending to be applied, and read it before it hits Postgres.
Review
- Select the pending migration.
- Open SQL Migration to read the statements.
- Open Schema Overview to see tables and columns that will be added, removed, or changed.
Apply
Choose Apply changes to DB. Fakebase runs pending SQL in journal order.
If several files are pending, select through them to apply the batch. The button shows how many will run.
After burning a database and keeping the files, those migrations become pending again. Apply them here to rebuild the schema on the empty database.