Initial sqlite schema.
This commit is contained in:
parent
c2b7c12905
commit
3a7d28030d
7 changed files with 1305 additions and 14 deletions
13
justfile
13
justfile
|
|
@ -1,6 +1,8 @@
|
|||
# Temporary until we have a frontend.
|
||||
set working-directory := 'backend'
|
||||
|
||||
export DATABASE_URL :="sqlite://local.db"
|
||||
|
||||
dev:
|
||||
cargo run
|
||||
|
||||
|
|
@ -20,3 +22,14 @@ clean:
|
|||
cargo clean
|
||||
|
||||
|
||||
reset-db:
|
||||
sqlx database drop
|
||||
sqlx database create
|
||||
sqlx migrate run
|
||||
|
||||
migrate:
|
||||
sqlx migrate run
|
||||
|
||||
migrate-revert:
|
||||
sqlx migrate revert
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue