dynamic_db #17
@@ -3,6 +3,12 @@ ALTER ROLE username_that_needs_permission CREATEDB;
|
|||||||
|
|
||||||
# Install migrations
|
# Install migrations
|
||||||
cargo install sqlx-cli
|
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 add init_migration
|
||||||
sqlx migrate run
|
sqlx migrate run
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user