Skip to content

Commit

Permalink
[ADD] - github actions for flyway migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
tofiksa committed Mar 31, 2024
1 parent af0d05b commit 358d641
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- run: >-
docker run --rm
--volume ${{ github.workspace }}/src/main/resources/db.migration:/sql:ro
--volume ${{ github.workspace }}/src/main/resources/db.migration:/flyway/sql:ro
flyway/flyway:7.12.1-alpine
-url="postgres://postgres.cyvmmlkvpqakdrcxdbbc:${{ secrets.SUPABASE_DB }}@aws-0-eu-central-1.pooler.supabase.com:5432/postgres"
-url="postgres://postgres.cyvmmlkvpqakdrcxdbbc:${{ secrets.SUPABASE_PASS }}@aws-0-eu-central-1.pooler.supabase.com:5432/postgres"
migrate
2 changes: 1 addition & 1 deletion src/main/resources/db.migration/0_0_1__user.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE TABLE IF NOT EXISTS USER (
CREATE TABLE IF NOT EXISTS USERS (
user_id bigint NOT NULL,
email varchar(255),
firstname varchar(255),
Expand Down

0 comments on commit 358d641

Please sign in to comment.