Fix cannot delete measure with evidences
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
7
pkg/coredata/migrations/20250504T224200Z.sql
Normal file
7
pkg/coredata/migrations/20250504T224200Z.sql
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
ALTER TABLE evidences DROP CONSTRAINT evidences_measure_id_fkey;
|
||||||
|
|
||||||
|
ALTER TABLE evidences
|
||||||
|
ADD CONSTRAINT evidences_measure_id_fkey
|
||||||
|
FOREIGN KEY (measure_id)
|
||||||
|
REFERENCES measures(id)
|
||||||
|
ON DELETE CASCADE;
|
||||||
Reference in New Issue
Block a user