File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -33,19 +33,9 @@ bin/postgres migrate
3333```
3434
3535This command will:
36- Apply new migrations – runs any migration files (in filename order) that haven’t been applied yet.
37- Record applied migrations – logs each successfully applied migration in a .applied_migrations file so it won’t run again.
38- Persist migration history with your database – the .applied_migrations file lives inside the postgres_data Docker volume alongside the database files.
39- If the postgres_data volume is deleted or recreated, both the database and the migration history are reset, so migrations will run again from scratch.
40-
41- This will:
4236
43371 . ** Apply new migrations,** in filename order.
44- 2 . ** Record applied migrations** in a file named ` .applied_migrations ` . This
45- plain-text file keeps a record of successfully applied migrations so they
46- aren't applied again next time. It lives in the same volume as the database
47- files, so when that volume is removed or recreated, the
48- ` .applied_migrations ` file goes with it and you start over.
38+ 2 . ** Record applied migrations** in a file named ` .applied_migrations ` .
4939
5040Already-applied scripts are skipped on subsequent runs.
5141
You can’t perform that action at this time.
0 commit comments