Skip to content

Commit adf8bce

Browse files
committed
add on delete cascade
1 parent e93e1cb commit adf8bce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

liquibase/changes/feat_task_execution_log.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ CREATE TABLE IF NOT EXISTS task_run (
2020
-- Mirrors the DatasetTrace concept from DatasetTraceService (Datastore).
2121
CREATE TABLE IF NOT EXISTS task_execution_log (
2222
id SERIAL PRIMARY KEY,
23-
task_run_id UUID REFERENCES task_run(id),
23+
task_run_id UUID REFERENCES task_run(id) ON DELETE CASCADE,
2424
task_name VARCHAR NOT NULL,
2525
entity_id VARCHAR,
2626
run_id VARCHAR NOT NULL,

0 commit comments

Comments
 (0)