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
@@ -180,8 +180,8 @@ CREATE TABLE IF NOT EXISTS `cloud`.`kms_wrapped_key` (
180
180
INDEX `idx_kms_key_id` (`kms_key_id`, `removed`),
181
181
INDEX `idx_kek_version_id` (`kek_version_id`, `removed`),
182
182
INDEX `idx_zone_id` (`zone_id`, `removed`),
183
-
CONSTRAINT`fk_kms_wrapped_key__kms_key_id`FOREIGN KEY (`kms_key_id`) REFERENCES`kms_keys`(`id`) ON DELETERESTRICT,
184
-
CONSTRAINT`fk_kms_wrapped_key__kek_version_id`FOREIGN KEY (`kek_version_id`) REFERENCES`kms_kek_versions`(`id`) ON DELETERESTRICT,
183
+
CONSTRAINT`fk_kms_wrapped_key__kms_key_id`FOREIGN KEY (`kms_key_id`) REFERENCES`kms_keys`(`id`) ON DELETE CASCADE,
184
+
CONSTRAINT`fk_kms_wrapped_key__kek_version_id`FOREIGN KEY (`kek_version_id`) REFERENCES`kms_kek_versions`(`id`) ON DELETE CASCADE,
185
185
CONSTRAINT`fk_kms_wrapped_key__zone_id`FOREIGN KEY (`zone_id`) REFERENCES`data_center`(`id`) ON DELETE CASCADE
186
186
) 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