Skip to content

Commit 7e521be

Browse files
committed
Fix migrations doc
1 parent 31a1aee commit 7e521be

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

docs/migrations.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,9 @@ bin/postgres migrate
3333
```
3434

3535
This 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

4337
1. **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

5040
Already-applied scripts are skipped on subsequent runs.
5141

0 commit comments

Comments
 (0)