From 0cb5665d5be808f737b09b29ed09d5f037bd00c0 Mon Sep 17 00:00:00 2001 From: Martin Porwoll Date: Tue, 16 Dec 2025 11:55:26 +0000 Subject: [PATCH] fix(ci): use migrate:fresh for fresh database schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change from `payload migrate` to `payload migrate:fresh --force` - This creates the complete schema including Payload internal tables - Fixes missing columns in payload_locked_documents_rels for CI tests 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dbf233c..f6c1722 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -126,8 +126,8 @@ jobs: CONSENT_LOGGING_API_KEY: ci-consent-api-key-placeholder IP_ANONYMIZATION_PEPPER: ci-anonymization-pepper-placeholder - - name: Run Payload Migrations - run: pnpm payload migrate + - name: Setup Database Schema + run: pnpm payload migrate:fresh --force env: PAYLOAD_SECRET: test-payload-secret DATABASE_URI: postgresql://payload:payload_test_password@localhost:5432/payload_test @@ -258,8 +258,8 @@ jobs: - name: Install Playwright browsers run: pnpm exec playwright install chromium --with-deps - - name: Run Payload Migrations - run: pnpm payload migrate + - name: Setup Database Schema + run: pnpm payload migrate:fresh --force env: PAYLOAD_SECRET: e2e-secret-placeholder DATABASE_URI: postgresql://payload:payload_test_password@localhost:5432/payload_test