With `DB_ALLOW_DESTRUCTIVE_CHANGES=true` Corteza can change DB tables and columns when Compose Module configuration changes.
22 lines
523 B
CUE
22 lines
523 B
CUE
package options
|
|
|
|
import (
|
|
"github.com/cortezaproject/corteza/server/codegen/schema"
|
|
)
|
|
|
|
DB: schema.#optionsGroup & {
|
|
handle: "DB"
|
|
options: {
|
|
DSN: {
|
|
defaultValue: "sqlite3://file::memory:?cache=shared&mode=memory"
|
|
description: "Database connection string."
|
|
}
|
|
allow_destructive_schema_changes: {
|
|
type: "bool"
|
|
defaultGoExpr: "false"
|
|
description: "Allow for irreversible changes to the database schema such as dropping columns and tables."
|
|
}
|
|
}
|
|
title: "Connection to data store backend"
|
|
}
|