All checks were successful
Release Tagging / release (push) Successful in 28s
Rust Build / Check (push) Successful in 36s
Rust Build / Test Suite (push) Successful in 50s
Rust Build / Rustfmt (push) Successful in 23s
Rust Build / Clippy (push) Successful in 44s
Rust Build / build (push) Successful in 1m3s
Rust Build / Check (pull_request) Successful in 38s
Rust Build / Test Suite (pull_request) Successful in 49s
Rust Build / Rustfmt (pull_request) Successful in 22s
Rust Build / Clippy (pull_request) Successful in 39s
Rust Build / build (pull_request) Successful in 1m0s
Reviewed-on: #39 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
28 lines
568 B
Plaintext
28 lines
568 B
Plaintext
TODO: At some point, move this somewhere that is appropriate
|
|
|
|
# Make sure role has CREATEDB
|
|
ALTER ROLE username_that_needs_permission CREATEDB;
|
|
|
|
# Install migrations
|
|
cargo install sqlx-cli
|
|
|
|
# Make sure to populate DATABASE_URL with correct value.
|
|
# By default, the DATABASE_URL found in .env file will be used
|
|
export DATABASE_URL="postgres://icarus_op_test:password@localhost/icarus_auth_test"
|
|
|
|
# init
|
|
sqlx migrate add init_migration
|
|
sqlx migrate run
|
|
|
|
# Create
|
|
sqlx database create
|
|
|
|
# Drop
|
|
sqlx database drop
|
|
|
|
# setup
|
|
sqlx database setup
|
|
|
|
# Reset
|
|
sqlx database reset
|