Skip to content

Commit c4e3f10

Browse files
committed
update readme
1 parent 525aede commit c4e3f10

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

migrations/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,18 @@ Additionally, [supabase/postgres](https://github.com/supabase/postgres/blob/deve
7878

7979
### Add a Migration
8080

81+
First, start a local postgres server and apply the migrations
8182
```shell
82-
# Start the database server
83-
cd docker
84-
docker compose up
83+
nix run .#dbmate-tool -- --version 15 --flake-url "."
8584
```
8685

87-
Then
86+
Then create a new migration
8887
```shell
89-
# create a new migration
9088
cd migrations
9189
dbmate new '<some message>'
9290
```
9391

94-
Then, populate the migration at `./db/migrations/xxxxxxxxx_<some_message>` and make sure it execute sucessfully with
92+
Then, execute the migration at `./db/migrations/xxxxxxxxx_<some_message>` and make sure it runs sucessfully with
9593

9694
```shell
9795
dbmate up

0 commit comments

Comments
 (0)