core: add OPENCODE_SKIP_MIGRATIONS flag to bypass database migrations
Allows users to skip automatic database migrations by setting the OPENCODE_SKIP_MIGRATIONS environment variable. Useful for testing scenarios or when manually managing database state.
This commit is contained in:
parent
0654f28c72
commit
a965a06259
2 changed files with 6 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ export namespace Flag {
|
|||
export const OPENCODE_MODELS_URL = process.env["OPENCODE_MODELS_URL"]
|
||||
export const OPENCODE_MODELS_PATH = process.env["OPENCODE_MODELS_PATH"]
|
||||
export const OPENCODE_DISABLE_CHANNEL_DB = truthy("OPENCODE_DISABLE_CHANNEL_DB")
|
||||
export const OPENCODE_SKIP_MIGRATIONS = truthy("OPENCODE_SKIP_MIGRATIONS")
|
||||
|
||||
function number(key: string) {
|
||||
const value = process.env[key]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue