Moved migrations_pg -> migrations and updated relevant references
This commit is contained in:
parent
13c5a05bd6
commit
1652419d94
5 changed files with 3 additions and 3 deletions
2
justfile
2
justfile
|
@ -39,7 +39,7 @@ start-release: start-postgres-dev clean-podman init-sqlx build-container-release
|
||||||
init-sqlx:
|
init-sqlx:
|
||||||
echo {{env_local}} > server/.env
|
echo {{env_local}} > server/.env
|
||||||
cd server && sqlx database create --connect-timeout 40 # Postgres takes a while to start up
|
cd server && sqlx database create --connect-timeout 40 # Postgres takes a while to start up
|
||||||
cd server && sqlx migrate run --source migrations_pg
|
cd server && sqlx migrate run
|
||||||
cd server && cargo sqlx prepare
|
cd server && cargo sqlx prepare
|
||||||
|
|
||||||
# Starts a postgres container for development
|
# Starts a postgres container for development
|
||||||
|
|
|
@ -43,7 +43,7 @@ impl ServerState {
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
sqlx::migrate!("./migrations_pg").run(&pool).await.unwrap();
|
sqlx::migrate!("./migrations").run(&pool).await.unwrap();
|
||||||
|
|
||||||
match crate::db::db_new_user("imbus".to_string(), "kartellen1234".to_string(), &pool).await
|
match crate::db::db_new_user("imbus".to_string(), "kartellen1234".to_string(), &pool).await
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue