From fd81b55aef31048b5149b31daa157c5247993a22 Mon Sep 17 00:00:00 2001 From: Eric Cabrel TIOGO Date: Sun, 1 Sep 2024 19:13:24 +0200 Subject: [PATCH] fix: migration diff step n tests --- .github/workflows/migration-db-check.yml | 2 +- packages/domain/migration-message.txt | 0 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 packages/domain/migration-message.txt diff --git a/.github/workflows/migration-db-check.yml b/.github/workflows/migration-db-check.yml index b39a2cc4..96f479cd 100644 --- a/.github/workflows/migration-db-check.yml +++ b/.github/workflows/migration-db-check.yml @@ -37,7 +37,7 @@ jobs: - name: Collect the migration diff continue-on-error: false run: | - yarn prisma migrate diff --from-url "$PROD_DATABASE_URL" --to-url "$DATABASE_URL" --script >> migration-message.txt + yarn prisma migrate diff --from-url "$PROD_DATABASE_URL" --to-url "mysql://root:root@127.0.0.1:3306/db" --script >> migration-message.txt # echo "The following migration will be applied to the production database:" >> migration-message.txt # echo "" >> migration-message.txt # echo "\`\`\`sql" >> migration-message.txt diff --git a/packages/domain/migration-message.txt b/packages/domain/migration-message.txt new file mode 100644 index 00000000..e69de29b