
Payload CMS Migration Regression Test: Fail Fast, Not Green
A Payload CMS migration regression test for CI seeds the dev marker row and a pending migration, runs the step with no TTY under a deadline, and checks exit code and time.
0%
0000000
0x00
Posts tagged Postgres on abchaudary.me.

A Payload CMS migration regression test for CI seeds the dev marker row and a pending migration, runs the step with no TTY under a deadline, and checks exit code and time.

A Postgres unique constraint ignores row-level security, so a tenant that cannot SELECT a row can still find it by INSERT. Scoping the key to UNIQUE (tenant_id, email) closes it.

Nine Postgres schemas in one database held 5 connections where nine databases held 45. Map with __table_args__, set Alembic include_schemas, and expect foreign keys to cross schemas.

payload migrate hangs in CI when a dev-mode marker row waits on a y/N prompt no runner can answer. The documented flag does not reach that command. Deleting one row does.