Initial
This commit is contained in:
@@ -108,6 +108,7 @@ export function migrate() {
|
||||
secret_cipher TEXT NOT NULL,
|
||||
secret_iv TEXT NOT NULL,
|
||||
secret_tag TEXT NOT NULL,
|
||||
target_type TEXT NOT NULL DEFAULT 'vcenter',
|
||||
api_mode TEXT NOT NULL DEFAULT 'auto',
|
||||
request_timeout_ms INTEGER NOT NULL DEFAULT 20000,
|
||||
allow_untrusted_tls INTEGER NOT NULL DEFAULT 0,
|
||||
@@ -511,6 +512,9 @@ export function migrate() {
|
||||
ensureColumn('hosts', 'source_type', "TEXT NOT NULL DEFAULT 'manual'");
|
||||
ensureColumn('hosts', 'source_connection_id', 'TEXT');
|
||||
ensureColumn('hosts', 'source_ref', 'TEXT');
|
||||
// VMware connection type separates vCenter inventory/power-state APIs from
|
||||
// standalone ESXi host checks that use the vSphere Web Services SOAP API.
|
||||
ensureColumn('vcenter_connections', 'target_type', "TEXT NOT NULL DEFAULT 'vcenter'");
|
||||
// Tenant write-back is opt-in per Graph connection. Default 0 so existing
|
||||
// read-only connections can never be used to change a tenant by accident.
|
||||
ensureColumn('graph_connections', 'allow_write', 'INTEGER NOT NULL DEFAULT 0');
|
||||
|
||||
Reference in New Issue
Block a user