Add mitigation with task and mapping import

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-04-01 18:02:43 +02:00
parent 1ee0c3beb7
commit e8dc868edf
13 changed files with 417 additions and 72 deletions

View File

@@ -0,0 +1,5 @@
ALTER TABLE tasks ADD COLUMN reference_id TEXT DEFAULT '';
ALTER TABLE tasks ALTER COLUMN reference_id SET NOT NULL;
ALTER TABLE tasks ALTER COLUMN reference_id DROP DEFAULT;
ALTER TABLE tasks ADD CONSTRAINT tasks_reference_id_unique UNIQUE (id, reference_id);