feat(cms): switch Payload to PostgreSQL with a fresh baseline migration (MITHOME-136)
- postgresAdapter (uuid ids, no push, prodMigrations), DATABASE_URI - src/payload.shared.ts: the config without the db adapter, shared with the one-off MongoDB content transfer - baseline migration 20260929_200306_initial (86 tables; applied twice on a disposable PostgreSQL 16: second run is a no-op) - seed copy (references, hosting plans) moved to src/content/seeds/ - MongoDB data migrations, their helpers/tests and the dead lib/mongodb.ts removed (kept in git history) - npm scripts for the Payload CLI (works now that the package is ESM) Branch only: staging has no PostgreSQL yet (tasks 3.x). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
a3d6cbe404
commit
e3ec6a9ac3
+7
-1
@@ -31,10 +31,16 @@
|
||||
"docker:build": "docker build -t mozdit-app .",
|
||||
"docker:run": "docker run -p 3000:3000 --env-file .env.local mozdit-app",
|
||||
"migrate:content": "node --env-file=.env.local --import tsx scripts/migrate-content-to-payload.ts",
|
||||
"test:payload": "node --env-file=.env.local --import tsx scripts/test-payload-local-api.ts"
|
||||
"test:payload": "node --env-file=.env.local --import tsx scripts/test-payload-local-api.ts",
|
||||
"payload": "payload",
|
||||
"generate:types": "payload generate:types",
|
||||
"generate:importmap": "payload generate:importmap",
|
||||
"migrate:create": "payload migrate:create",
|
||||
"migrate:status": "payload migrate:status"
|
||||
},
|
||||
"dependencies": {
|
||||
"@payloadcms/db-mongodb": "^3.88.0",
|
||||
"@payloadcms/db-postgres": "^3.88.0",
|
||||
"@payloadcms/next": "^3.88.0",
|
||||
"@payloadcms/richtext-lexical": "^3.88.0",
|
||||
"graphql": "^16.14.2",
|
||||
|
||||
Reference in New Issue
Block a user