Create Initial Database Schema for Tasks. (#1)
Create migration scripts for this and initial Task DB Model in rust along with unit tests. Reviewed-on: #1 Co-authored-by: Drew Galbraith <drew@tiramisu.one> Co-committed-by: Drew Galbraith <drew@tiramisu.one>
This commit is contained in:
parent
c2b7c12905
commit
82d524a62f
13 changed files with 1923 additions and 15 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