Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

feat(ci) Fix migrations in CI (#7563)

Aarushi39afba6da842
diff --git a/.github/workflows/autogpt-server-ci.yml b/.github/workflows/autogpt-server-ci.yml
index 7d012bf26d..96cc2d430f 100644
--- a/.github/workflows/autogpt-server-ci.yml
+++ b/.github/workflows/autogpt-server-ci.yml
@@ -115,10 +115,10 @@ jobs:
run: poetry install
- name: Generate Prisma Client
- run: poetry run prisma generate
+ run: poetry run prisma generate --schema postgres/schema.prisma
- name: Run Database Migrations
- run: poetry run prisma migrate dev --name updates
+ run: poetry run prisma migrate dev --schema postgres/schema.prisma --name updates
env:
CONNECTION_STR: ${{ steps.postgres.outputs.connection-uri }}