Skip to content

Commit

Permalink
fix(schemaspy): default schema (#1957)
Browse files Browse the repository at this point in the history
Signed-off-by: OMPRAKASH MISHRA <[email protected]>
  • Loading branch information
mishraomp authored May 1, 2024
1 parent 6f7f394 commit 2a8f5b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
FLYWAY_USER: postgres
FLYWAY_PASSWORD: default
FLYWAY_LOCATIONS: filesystem:./migrations
FLYWAY_DEFAULT_SCHEMA: "USERS"
FLYWAY_DEFAULT_SCHEMA: "users"
with:
args: info migrate info

Expand All @@ -86,7 +86,7 @@ jobs:
mkdir output
chmod a+rwx -R output
- name: Run Schemaspy
run: docker run --network host -v "$PWD/output:/output" schemaspy/schemaspy:6.2.4 -t pgsql11 -db default -host 127.0.0.1 -port 5432 -u postgres -p default -schemas USERS
run: docker run --network host -v "$PWD/output:/output" schemaspy/schemaspy:6.2.4 -t pgsql11 -db default -host 127.0.0.1 -port 5432 -u postgres -p default -schemas users
- name: Deploy to Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down
11 changes: 9 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,18 @@ services:
FLYWAY_USER: *POSTGRES_USER
FLYWAY_PASSWORD: *POSTGRES_PASSWORD
FLYWAY_BASELINE_ON_MIGRATE: true
FLYWAY_DEFAULT_SCHEMA: USERS
FLYWAY_DEFAULT_SCHEMA: users
depends_on:
database:
condition: service_healthy

schema_spy:
image: schemaspy/schemaspy:6.2.4
container_name: schemaspy
command: -t pgsql11 -db postgres -host database -port 5432 -u postgres -p default -schemas users
depends_on:
migrations:
condition: service_completed_successfully
volumes: ["./output:/output"]
backend:
container_name: backend
entrypoint: sh -c "npm i && npm run start:dev"
Expand Down

0 comments on commit 2a8f5b4

Please sign in to comment.