From af5bcc0a169f04a1d3329beaa21c89df07f53714 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 8 Mar 2011 10:52:18 -0500 Subject: [PATCH] Script to fix some wrong entity types (affecting the way PackIn works on dictionary items) --- .../360lts-release/oracle/745_FixWrongEntityTypes.sql | 7 +++++++ .../360lts-release/postgresql/745_FixWrongEntityTypes.sql | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 migration/360lts-release/oracle/745_FixWrongEntityTypes.sql create mode 100644 migration/360lts-release/postgresql/745_FixWrongEntityTypes.sql diff --git a/migration/360lts-release/oracle/745_FixWrongEntityTypes.sql b/migration/360lts-release/oracle/745_FixWrongEntityTypes.sql new file mode 100644 index 0000000000..7b47cefb97 --- /dev/null +++ b/migration/360lts-release/oracle/745_FixWrongEntityTypes.sql @@ -0,0 +1,7 @@ +update ad_element set entitytype = 'D' where entitytype='U' and AD_Element_id < 1000000; + +update ad_field set entitytype = 'D' where entitytype='U' and AD_Field_id < 1000000; + +update AD_Column set entitytype = 'D' where entitytype='U' and AD_Column_id < 1000000; + +update AD_Val_Rule set entitytype = 'D' where entitytype='U' and AD_Val_Rule_id < 1000000; \ No newline at end of file diff --git a/migration/360lts-release/postgresql/745_FixWrongEntityTypes.sql b/migration/360lts-release/postgresql/745_FixWrongEntityTypes.sql new file mode 100644 index 0000000000..7b47cefb97 --- /dev/null +++ b/migration/360lts-release/postgresql/745_FixWrongEntityTypes.sql @@ -0,0 +1,7 @@ +update ad_element set entitytype = 'D' where entitytype='U' and AD_Element_id < 1000000; + +update ad_field set entitytype = 'D' where entitytype='U' and AD_Field_id < 1000000; + +update AD_Column set entitytype = 'D' where entitytype='U' and AD_Column_id < 1000000; + +update AD_Val_Rule set entitytype = 'D' where entitytype='U' and AD_Val_Rule_id < 1000000; \ No newline at end of file