mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-22 10:32:40 +08:00
19 lines
1.6 KiB
TypeScript
19 lines
1.6 KiB
TypeScript
import { defineLocalSqliteMigration } from './sqlMigration';
|
|
|
|
export const local0024CapabilityV12Migration = defineLocalSqliteMigration({
|
|
id: '0024-capability-v12',
|
|
statements: [
|
|
`
|
|
UPDATE "QingLong3SchemaCapabilities"
|
|
SET contract_version = 12,
|
|
migration_id = '0023-local-owner-pepper-material-gc',
|
|
capabilities = '{"run_core":1,"run_retry_policy":1,"completion_receipt_journal":1,"local_dispatch_plan":1,"local_secret_envelope":1,"local_project_policy":1,"local_security_audit":1,"local_secret_authorized_mutation":1,"local_identity":1,"local_api_credential":1,"local_identity_provisioning":1,"local_owner_bootstrap":1,"local_owner_delivery_acknowledgement":1,"api_credential_pepper_binding":1,"local_owner_pepper_catalog":1,"local_owner_credential_recovery":1,"local_owner_pepper_reference_inspection":1,"local_owner_pepper_material_gc":1}',
|
|
updated_at_ms = CAST(unixepoch('subsec') * 1000 AS INTEGER)
|
|
WHERE contract_name = 'local-control-core'
|
|
AND contract_version = 11
|
|
AND migration_id = '0021-local-owner-credential-recovery'
|
|
AND capabilities = '{"run_core":1,"run_retry_policy":1,"completion_receipt_journal":1,"local_dispatch_plan":1,"local_secret_envelope":1,"local_project_policy":1,"local_security_audit":1,"local_secret_authorized_mutation":1,"local_identity":1,"local_api_credential":1,"local_identity_provisioning":1,"local_owner_bootstrap":1,"local_owner_delivery_acknowledgement":1,"api_credential_pepper_binding":1,"local_owner_pepper_catalog":1,"local_owner_credential_recovery":1,"local_owner_pepper_reference_inspection":1}'
|
|
`,
|
|
],
|
|
});
|