From 672578542ee34ca6e18e9c2a5779864f65c33eb7 Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 25 Nov 2024 08:18:59 +0100 Subject: [PATCH] fix: refs #8222 fix sql method --- db/versions/11361-pinkRose/00-firstScript.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 db/versions/11361-pinkRose/00-firstScript.sql diff --git a/db/versions/11361-pinkRose/00-firstScript.sql b/db/versions/11361-pinkRose/00-firstScript.sql new file mode 100644 index 000000000..a90aaf519 --- /dev/null +++ b/db/versions/11361-pinkRose/00-firstScript.sql @@ -0,0 +1,2 @@ +ALTER TABLE vn.ticket DROP FOREIGN KEY tickets_zone_fk; +ALTER TABLE vn.ticket ADD CONSTRAINT tickets_zone_fk FOREIGN KEY (zoneFk) REFERENCES vn.`zone`(id) ON DELETE SET NULL ON UPDATE CASCADE;