From e213c272f97028a43bd78af0b371a3eb2af6ce87 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 1 Feb 2008 17:09:33 +0000 Subject: [PATCH] Fix [ 1869844 ] CLIENT_ID not ReadOnly any more ?!? --- migration/331b-trunk/087_BF1869844.sql | 9 +++++++++ migration/331b-trunk/postgresql/087_BF1869844.sql | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 migration/331b-trunk/087_BF1869844.sql create mode 100644 migration/331b-trunk/postgresql/087_BF1869844.sql diff --git a/migration/331b-trunk/087_BF1869844.sql b/migration/331b-trunk/087_BF1869844.sql new file mode 100644 index 0000000000..2dc47ebcc8 --- /dev/null +++ b/migration/331b-trunk/087_BF1869844.sql @@ -0,0 +1,9 @@ +-- [ 1869844 ] CLIENT_ID not ReadOnly any more ?!? +UPDATE AD_COLUMN SET ad_val_rule_id = 129 +WHERE ad_column_id IN ( +SELECT ad_column_id + FROM AD_TABLE t, AD_COLUMN c + WHERE t.ad_table_id = c.ad_table_id + AND columnname = 'AD_Client_ID' + AND t.accesslevel IN (1, 2, 3) + AND c.ad_val_rule_id IS NULL); \ No newline at end of file diff --git a/migration/331b-trunk/postgresql/087_BF1869844.sql b/migration/331b-trunk/postgresql/087_BF1869844.sql new file mode 100644 index 0000000000..2dc47ebcc8 --- /dev/null +++ b/migration/331b-trunk/postgresql/087_BF1869844.sql @@ -0,0 +1,9 @@ +-- [ 1869844 ] CLIENT_ID not ReadOnly any more ?!? +UPDATE AD_COLUMN SET ad_val_rule_id = 129 +WHERE ad_column_id IN ( +SELECT ad_column_id + FROM AD_TABLE t, AD_COLUMN c + WHERE t.ad_table_id = c.ad_table_id + AND columnname = 'AD_Client_ID' + AND t.accesslevel IN (1, 2, 3) + AND c.ad_val_rule_id IS NULL); \ No newline at end of file