mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 16:14:12 +00:00
fix(ci): use migrate:fresh for fresh database schema
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
d449da6915
commit
0cb5665d5b
1 changed files with 4 additions and 4 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue