diff --git a/justfile b/justfile index c3e157a..626ec71 100644 --- a/justfile +++ b/justfile @@ -6,4 +6,13 @@ reset_db: rm -f aps_db.db uv run alembic upgrade 958d7aee2b21 for file in db_fixtures/*.sql; do sqlite3 aps_db.db < "$file"; done - uv run alembic upgrade heads \ No newline at end of file + uv run alembic upgrade heads + +prepare_prod_db: + rm -f aps_db.db + uv run alembic upgrade 958d7aee2b21 + sqlite3 aps_db.db < db_fixtures/01_core_data.sql + uv run alembic upgrade heads + uv run aps import-users users.csv + uv run aps import-transactions transactions.csv + sqlite3 aps_db.db "INSERT INTO aps_user_user_group_association (user_id, user_group_id) VALUES ((SELECT id FROM aps_user WHERE username = 'niklas.m'),1);" \ No newline at end of file