diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index 5c95d43..fc33e4c 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -44,8 +44,8 @@ jobs: sudo chmod +x /usr/local/bin/dbmate - name: Run Migrations against Test Database - run: | - npx dbmate up + working-directory: ./api + run: npx dbmate up env: DATABASE_URL: "postgres://test_user:test_password@saber.home.lan:5433/test_db?sslmode=disable" diff --git a/api/src/.env b/api/.env similarity index 100% rename from api/src/.env rename to api/.env diff --git a/api/db/schema.sql b/api/db/schema.sql index c6bf10e..e2a99cd 100644 --- a/api/db/schema.sql +++ b/api/db/schema.sql @@ -1,7 +1,7 @@ \restrict dbmate --- Dumped from database version 18.4 (Ubuntu 18.4-1.pgdg24.04+1) --- Dumped by pg_dump version 18.4 (Ubuntu 18.4-1.pgdg24.04+1) +-- Dumped from database version 18.6 (Ubuntu 18.6-1.pgdg24.04+2) +-- Dumped by pg_dump version 18.6 (Ubuntu 18.6-1.pgdg24.04+2) SET statement_timeout = 0; SET lock_timeout = 0;