T-2: M0.2 — Finish shared Postgres migrations: bun run db:migrate + fresh-database schema test

This commit is contained in:
Studio 2026-11-27 10:43:36 -05:00
parent b82fc7c905
commit f36bdbd6bd
3 changed files with 125 additions and 68 deletions

View file

@ -42,7 +42,14 @@ export function initializeStockConfig(
mongodb: {
...rawConfig.database.mongodb,
...(options?.mongoReadOnly === true ? { readOnly: true } : {}),
...(options?.postgresOnly === true ? { enabled: false } : {}),
...(options?.postgresOnly === true
? {
enabled: false,
uri: 'mongodb://disabled',
readUri: undefined,
password: undefined,
}
: {}),
},
},
}