10 lines
380 B
Markdown
Raw Normal View History

2024-01-25 19:22:57 -05:00
# DB Migrations
```bash
goose create migration_name
2024-01-25 19:22:57 -05:00
```
2024-02-01 20:05:35 -05: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.