Separate staged command payloads from provisioning state
This commit is contained in:
@@ -43,6 +43,14 @@ export function migrateNativeInstances(handle: Database.Database): void {
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS idx_ec_host_migrations_instance ON ec_host_migrations(instance_id);
|
||||
`);
|
||||
if (!handle.prepare("SELECT 1 FROM settings WHERE key='native_file_plans_v1'").get()) {
|
||||
handle.transaction(() => {
|
||||
handle.exec(`UPDATE native_provisioning SET files_json=(SELECT json_group_array(json_remove(value,'$.contentBase64'))
|
||||
FROM json_each(native_provisioning.files_json)) WHERE files_json IS NOT NULL;
|
||||
INSERT INTO settings(key,value) VALUES('native_file_plans_v1','1');`);
|
||||
})();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/** Accepted native creations receive their host port only when provisioning places them. */
|
||||
|
||||
Reference in New Issue
Block a user