From c263cf8fcb2459e18c9d59c7a2683f422b5a88d1 Mon Sep 17 00:00:00 2001 From: Eric Cabrel TIOGO Date: Sun, 1 Sep 2024 23:51:18 +0200 Subject: [PATCH] chore(database): fix migration deply action --- .github/workflows/migration-db-deploy.yml | 2 +- .../migrations/20240901144144_enable_foreign_keys/migration.sql | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/migration-db-deploy.yml b/.github/workflows/migration-db-deploy.yml index 0db00eb..06698b1 100644 --- a/.github/workflows/migration-db-deploy.yml +++ b/.github/workflows/migration-db-deploy.yml @@ -16,7 +16,7 @@ jobs: uses: ./.github/actions/install-dependencies - name: Install Doppler CLI - run: curl -Ls https://cli.doppler.com/install.sh | sh + uses: dopplerhq/cli-action@v3 - name: Retrieve and export the database URL run: echo "DATABASE_URL=$(doppler secrets get CONNECTION_STRING --plain)" >> $GITHUB_ENV diff --git a/packages/domain/prisma/migrations/20240901144144_enable_foreign_keys/migration.sql b/packages/domain/prisma/migrations/20240901144144_enable_foreign_keys/migration.sql index aab4be7..2c783b5 100644 --- a/packages/domain/prisma/migrations/20240901144144_enable_foreign_keys/migration.sql +++ b/packages/domain/prisma/migrations/20240901144144_enable_foreign_keys/migration.sql @@ -1,3 +1,4 @@ + -- AddForeignKey ALTER TABLE `users` ADD CONSTRAINT `users_role_id_fkey` FOREIGN KEY (`role_id`) REFERENCES `roles`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;