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
4
justfile
4
justfile
|
@ -39,7 +39,7 @@ start-release: start-postgres-dev clean-podman init-sqlx build-container-release
|
|||
init-sqlx:
|
||||
echo {{env_local}} > server/.env
|
||||
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
|
||||
|
||||
# Starts a postgres container for development
|
||||
|
@ -72,4 +72,4 @@ clean: clean-podman clean-images
|
|||
rm -rf client-solid/node_modules
|
||||
rm -rf server/public
|
||||
rm -rf server/target
|
||||
@echo "Cleaned up! Make sure to clean up podman volumes and networks."
|
||||
@echo "Cleaned up! Make sure to clean up podman volumes and networks."
|
||||
|
|
|
@ -43,7 +43,7 @@ impl ServerState {
|
|||
.await
|
||||
.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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue