CogniPrep Assess runs beside its sister product, CogniPrep, on the same Postgres and the same auth. That is convenient for sign-in and awkward for migrations. Two products, one database, one migrator each, and a rule in drizzle that quietly makes them step on each other.
The product is live here if you want the context for why two products share a database at all.
The rule that bites
Drizzle's migrator records applied migrations in a table, and it decides what to run by comparing each migration's timestamp with the newest row in that table. Anything older than the newest tracked row is skipped.
Put two products' migrations in one tracking table and the failure is silent. Product A ships a migration today; product B has an older migration waiting. B's migration is now older than the newest row, so the migrator skips it and reports success. Nothing is red.…