Skip to content

Commit

Permalink
chore: update migration doc, add DATABASE_URL env example (#17276)
Browse files Browse the repository at this point in the history
  • Loading branch information
yezizp2012 authored Jun 17, 2024
1 parent adf465a commit 9274ebc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/meta/model_v2/migration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
> **DO NOT** modify already published migration files.
## How to run the migrator CLI
- Generate a new migration file
- Generate a new migration file, a database endpoint is required but not used.
```sh
cargo run -- generate MIGRATION_NAME
export DATABASE_URL=sqlite::memory:; cargo run -- generate MIGRATION_NAME
```
- Apply all pending migrations for test purposes, `DATABASE_URL` required.
- Apply all pending migrations for test purposes, change `DATABASE_URL` to the actual database endpoint.
```sh
cargo run
```
Expand Down

0 comments on commit 9274ebc

Please sign in to comment.