First step of mitigation migration

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-27 23:34:35 +01:00
parent 449bd620da
commit 7321862ba9
62 changed files with 4025 additions and 2141 deletions

View File

@@ -0,0 +1,8 @@
-- Drop the foreign key constraint first
ALTER TABLE mitigations DROP CONSTRAINT IF EXISTS fk_mitigations_framework_id;
-- Drop any indices on framework_id
DROP INDEX IF EXISTS idx_mitigations_framework_id;
-- Remove the framework_id column
ALTER TABLE mitigations DROP COLUMN framework_id;