T-2: M0.2 — Finish shared Postgres migrations: bun run db:migrate + fresh-database schema test
This commit is contained in:
parent
b82fc7c905
commit
f36bdbd6bd
3 changed files with 125 additions and 68 deletions
|
|
@ -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,
|
||||
}
|
||||
: {}),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue