Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
olirice committed Feb 10, 2025
1 parent 525aede commit c4e3f10
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions migrations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,18 @@ Additionally, [supabase/postgres](https://github.com/supabase/postgres/blob/deve

### Add a Migration

First, start a local postgres server and apply the migrations
```shell
# Start the database server
cd docker
docker compose up
nix run .#dbmate-tool -- --version 15 --flake-url "."
```

Then
Then create a new migration
```shell
# create a new migration
cd migrations
dbmate new '<some message>'
```

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

```shell
dbmate up
Expand Down

0 comments on commit c4e3f10

Please sign in to comment.