From 1fe527a7d58799d3ed4545bea690b771a4c6a530 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 13 Aug 2009 15:32:42 +0000 Subject: [PATCH] BF [2797787] - Cannot delete line on PO generated from SO https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2797787&group_id=176962 --- migration/353a-trunk/oracle/527_BF2797787.sql | 7 +++++++ migration/353a-trunk/postgresql/527_BF2797787.sql | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 migration/353a-trunk/oracle/527_BF2797787.sql create mode 100644 migration/353a-trunk/postgresql/527_BF2797787.sql diff --git a/migration/353a-trunk/oracle/527_BF2797787.sql b/migration/353a-trunk/oracle/527_BF2797787.sql new file mode 100644 index 0000000000..02ec63755c --- /dev/null +++ b/migration/353a-trunk/oracle/527_BF2797787.sql @@ -0,0 +1,7 @@ +ALTER TABLE c_orderline DROP CONSTRAINT linkorderline_corderline; + +ALTER TABLE c_orderline + ADD ( CONSTRAINT linkorderline_corderline FOREIGN KEY (link_orderline_id) + REFERENCES c_orderline (c_orderline_id) + ON DELETE CASCADE +); diff --git a/migration/353a-trunk/postgresql/527_BF2797787.sql b/migration/353a-trunk/postgresql/527_BF2797787.sql new file mode 100644 index 0000000000..a740b05fe0 --- /dev/null +++ b/migration/353a-trunk/postgresql/527_BF2797787.sql @@ -0,0 +1,6 @@ +ALTER TABLE c_orderline DROP CONSTRAINT linkorderline_corderline; + +ALTER TABLE c_orderline + ADD CONSTRAINT linkorderline_corderline FOREIGN KEY (link_orderline_id) + REFERENCES c_orderline (c_orderline_id) MATCH SIMPLE + ON UPDATE NO ACTION ON DELETE SET NULL;