From 024823a18a879657586b9dab6d1b271bcc816d66 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 31 Dec 2008 19:52:12 +0000 Subject: [PATCH] Fix wrong posterita entity types --- .../oracle/374_fixPosteritaEntityTypes.sql | 23 +++++++++++++++++++ .../374_fixPosteritaEntityTypes.sql | 23 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 migration/353a-trunk/oracle/374_fixPosteritaEntityTypes.sql create mode 100644 migration/353a-trunk/postgresql/374_fixPosteritaEntityTypes.sql diff --git a/migration/353a-trunk/oracle/374_fixPosteritaEntityTypes.sql b/migration/353a-trunk/oracle/374_fixPosteritaEntityTypes.sql new file mode 100644 index 0000000000..02e60a7949 --- /dev/null +++ b/migration/353a-trunk/oracle/374_fixPosteritaEntityTypes.sql @@ -0,0 +1,23 @@ +update AD_COLUMN set entitytype = 'D' where entitytype in ('A','U') and AD_COLUMN_id < 1000000; + +update AD_ELEMENT set entitytype = 'D' where entitytype in ('A','U') and AD_ELEMENT_id < 1000000; + +update AD_FIELD set entitytype = 'D' where entitytype in ('A','U') and AD_FIELD_id < 1000000; + +update AD_MENU set entitytype = 'D' where entitytype in ('A','U') and AD_MENU_id < 1000000; + +update AD_MESSAGE set entitytype = 'D' where entitytype in ('A','U') and AD_MESSAGE_id < 1000000; + +update AD_REFERENCE set entitytype = 'D' where entitytype in ('A','U') and AD_REFERENCE_id < 1000000; + +update AD_REF_LIST set entitytype = 'D' where entitytype in ('A','U') and AD_REFERENCE_id < 1000000; + +update AD_REF_TABLE set entitytype = 'D' where entitytype in ('A','U') and AD_REFERENCE_id < 1000000; + +update AD_TAB set entitytype = 'D' where entitytype in ('A','U') and AD_TAB_id < 1000000; + +update AD_TABLE set entitytype = 'D' where entitytype in ('A','U') and AD_TABLE_id < 1000000; + +update AD_VAL_RULE set entitytype = 'D' where entitytype in ('A','U') and AD_VAL_RULE_id < 1000000; + +update AD_WINDOW set entitytype = 'D' where entitytype in ('A','U') and AD_WINDOW_id < 1000000; diff --git a/migration/353a-trunk/postgresql/374_fixPosteritaEntityTypes.sql b/migration/353a-trunk/postgresql/374_fixPosteritaEntityTypes.sql new file mode 100644 index 0000000000..02e60a7949 --- /dev/null +++ b/migration/353a-trunk/postgresql/374_fixPosteritaEntityTypes.sql @@ -0,0 +1,23 @@ +update AD_COLUMN set entitytype = 'D' where entitytype in ('A','U') and AD_COLUMN_id < 1000000; + +update AD_ELEMENT set entitytype = 'D' where entitytype in ('A','U') and AD_ELEMENT_id < 1000000; + +update AD_FIELD set entitytype = 'D' where entitytype in ('A','U') and AD_FIELD_id < 1000000; + +update AD_MENU set entitytype = 'D' where entitytype in ('A','U') and AD_MENU_id < 1000000; + +update AD_MESSAGE set entitytype = 'D' where entitytype in ('A','U') and AD_MESSAGE_id < 1000000; + +update AD_REFERENCE set entitytype = 'D' where entitytype in ('A','U') and AD_REFERENCE_id < 1000000; + +update AD_REF_LIST set entitytype = 'D' where entitytype in ('A','U') and AD_REFERENCE_id < 1000000; + +update AD_REF_TABLE set entitytype = 'D' where entitytype in ('A','U') and AD_REFERENCE_id < 1000000; + +update AD_TAB set entitytype = 'D' where entitytype in ('A','U') and AD_TAB_id < 1000000; + +update AD_TABLE set entitytype = 'D' where entitytype in ('A','U') and AD_TABLE_id < 1000000; + +update AD_VAL_RULE set entitytype = 'D' where entitytype in ('A','U') and AD_VAL_RULE_id < 1000000; + +update AD_WINDOW set entitytype = 'D' where entitytype in ('A','U') and AD_WINDOW_id < 1000000;