AnthoLume/database/migrations/README.md

10 lines
380 B
Markdown
Raw Permalink Normal View History

2024-01-26 00:22:57 +00:00
# DB Migrations
```bash
goose create migration_name
2024-01-26 00:22:57 +00:00
```
2024-02-02 01:05:35 +00:00
## Note
Since we update both the `schema.sql`, as well as the migration files, when we create a new DB it will inherently be up-to-date. We don't want to run the migrations if it's already up-to-date. Instead each migration checks if we have a new DB (via a value passed into the context), and if we do we simply return.