You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: engine/schema/src/main/resources/META-INF/db/schema-42210to42300.sql
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -114,8 +114,8 @@ CREATE TABLE IF NOT EXISTS `cloud`.`kms_wrapped_key` (
114
114
INDEX `idx_kms_key_id` (`kms_key_id`, `removed`),
115
115
INDEX `idx_kek_version_id` (`kek_version_id`, `removed`),
116
116
INDEX `idx_zone_id` (`zone_id`, `removed`),
117
-
CONSTRAINT`fk_kms_wrapped_key__kms_key_id`FOREIGN KEY (`kms_key_id`) REFERENCES`kms_keys`(`id`) ON DELETERESTRICT,
118
-
CONSTRAINT`fk_kms_wrapped_key__kek_version_id`FOREIGN KEY (`kek_version_id`) REFERENCES`kms_kek_versions`(`id`) ON DELETERESTRICT,
117
+
CONSTRAINT`fk_kms_wrapped_key__kms_key_id`FOREIGN KEY (`kms_key_id`) REFERENCES`kms_keys`(`id`) ON DELETE CASCADE,
118
+
CONSTRAINT`fk_kms_wrapped_key__kek_version_id`FOREIGN KEY (`kek_version_id`) REFERENCES`kms_kek_versions`(`id`) ON DELETE CASCADE,
119
119
CONSTRAINT`fk_kms_wrapped_key__zone_id`FOREIGN KEY (`zone_id`) REFERENCES`data_center`(`id`) ON DELETE CASCADE
120
120
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='KMS wrapped encryption keys (DEKs) - references kms_keys for KEK metadata and kek_versions for specific version';
0 commit comments