CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Canceled after 0s
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Canceled after 0s
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Canceled after 0s
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Canceled after 0s
Payload db-postgres (uuid ids, no push), fresh baseline migration, one-off lossless data migration from the staging MongoDB, Compose per the llmdev Docker spec, pg_dump backups, Node 22 for the Payload CLI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 lines
2.0 KiB
Markdown
48 lines
2.0 KiB
Markdown
# Spec Delta
|
|
|
|
## ADDED Requirements
|
|
|
|
### Requirement: Relational content storage
|
|
|
|
The CMS SHALL store all site content, media metadata, contact submissions and users in a
|
|
PostgreSQL database dedicated to the website, separate from other databases on the same
|
|
server. The database schema SHALL change only through versioned migrations that run
|
|
automatically on production-mode startup before the site serves requests.
|
|
|
|
#### Scenario: Startup with a pending schema migration
|
|
|
|
- **WHEN** a new release with a pending schema migration starts in production mode
|
|
- **THEN** the migration SHALL be applied before the site serves content, and a second
|
|
start SHALL apply nothing
|
|
|
|
#### Scenario: Separate databases on one server
|
|
|
|
- **WHEN** the website connects to the PostgreSQL server
|
|
- **THEN** it SHALL use its own database and credentials and SHALL NOT be able to write
|
|
to the product catalogue database
|
|
|
|
### Requirement: Lossless migration of existing content to PostgreSQL
|
|
|
|
The existing MongoDB content SHALL be transferred to PostgreSQL once, before the
|
|
production launch. For every global and collection the published state in both locales
|
|
and any open draft SHALL be preserved; media documents SHALL keep their files and
|
|
references; contact submissions SHALL be preserved. Public pages SHALL render the same
|
|
content before and after the migration.
|
|
|
|
#### Scenario: Compare public pages after the migration
|
|
|
|
- **WHEN** the migration has run on a copy of the staging data
|
|
- **THEN** the document counts per global and collection SHALL match, and the rendered
|
|
text of every public page in Hungarian and English SHALL equal the pre-migration
|
|
snapshot
|
|
|
|
#### Scenario: Partner logo references survive
|
|
|
|
- **WHEN** a partner referenced a media document before the migration
|
|
- **THEN** it SHALL reference the migrated media document with the same file afterwards
|
|
|
|
#### Scenario: Re-running the migration
|
|
|
|
- **WHEN** the migration script runs again on the same target
|
|
- **THEN** it SHALL detect the existing data and change nothing
|