diff --git a/.github/workflows/azure-static-web-apps-agreeable-moss-0815bc703.yml b/.github/workflows/azure-static-web-apps-agreeable-moss-0815bc703.yml index 0e5e94e..031620b 100644 --- a/.github/workflows/azure-static-web-apps-agreeable-moss-0815bc703.yml +++ b/.github/workflows/azure-static-web-apps-agreeable-moss-0815bc703.yml @@ -34,6 +34,8 @@ jobs: output_location: '.output/public' # Built app content directory - optional ###### End of Repository/Build Configurations ###### - name: Run Prisma migrations + env: + DATABASE_URL: ${{ secrets.DATABASE_URL }} run: npx prisma migrate deploy close_pull_request_job: diff --git a/prisma/schema.prisma b/prisma/schema.prisma index b2e1b34..bdd6f85 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -4,7 +4,7 @@ generator client { datasource db { provider = "mysql" - url = "mysql://tafeltennistoernooi:mypassword@tafeltennistoernooiplanner-mysql.mysql.database.azure.com:3306/tafeltennistoernooi" + url = env("DATABASE_URL") } model attendee {