From b00ca72938c8562a47ae4f0eb3c71aea6c0f338a Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 27 Dec 2019 17:26:16 +0100 Subject: [PATCH] IDEMPIERE-3952 EntityType and Data Access Level review for tables / set default to 'U' in the 8 new columns to allow old 2packs backward compatibility --- .../oracle/201912271715_IDEMPIERE-3952.sql | 32 +++++++++++++++++++ .../201912271715_IDEMPIERE-3952.sql | 29 +++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 migration/i7.1/oracle/201912271715_IDEMPIERE-3952.sql create mode 100644 migration/i7.1/postgresql/201912271715_IDEMPIERE-3952.sql diff --git a/migration/i7.1/oracle/201912271715_IDEMPIERE-3952.sql b/migration/i7.1/oracle/201912271715_IDEMPIERE-3952.sql new file mode 100644 index 0000000000..643d264a70 --- /dev/null +++ b/migration/i7.1/oracle/201912271715_IDEMPIERE-3952.sql @@ -0,0 +1,32 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- IDEMPIERE-3952 EntityType and Data Access Level review for tables +-- Dec 27, 2019, 5:14:30 PM CET +ALTER TABLE AD_InfoProcess MODIFY EntityType VARCHAR2(40) DEFAULT 'U' +; + +ALTER TABLE AD_InfoRelated MODIFY EntityType VARCHAR2(40) DEFAULT 'U' +; + +ALTER TABLE AD_SearchDefinition MODIFY EntityType VARCHAR2(40) DEFAULT 'U' +; + +ALTER TABLE AD_Style MODIFY EntityType VARCHAR2(40) DEFAULT 'U' +; + +ALTER TABLE AD_StyleLine MODIFY EntityType VARCHAR2(40) DEFAULT 'U' +; + +ALTER TABLE AD_ToolBarButton MODIFY EntityType VARCHAR2(40) DEFAULT 'U' +; + +ALTER TABLE AD_ZoomCondition MODIFY EntityType VARCHAR2(40) DEFAULT 'U' +; + +ALTER TABLE PA_DocumentStatus MODIFY EntityType VARCHAR2(40) DEFAULT 'U' +; + +SELECT register_migration_script('201912271715_IDEMPIERE-3952.sql') FROM dual +; + diff --git a/migration/i7.1/postgresql/201912271715_IDEMPIERE-3952.sql b/migration/i7.1/postgresql/201912271715_IDEMPIERE-3952.sql new file mode 100644 index 0000000000..a6e48c92e9 --- /dev/null +++ b/migration/i7.1/postgresql/201912271715_IDEMPIERE-3952.sql @@ -0,0 +1,29 @@ +-- IDEMPIERE-3952 EntityType and Data Access Level review for tables +-- Dec 27, 2019, 5:14:30 PM CET +INSERT INTO t_alter_column values('AD_InfoProcess','EntityType','VARCHAR(40)',null,'U') +; + +INSERT INTO t_alter_column values('AD_InfoRelated','EntityType','VARCHAR(40)',null,'U') +; + +INSERT INTO t_alter_column values('AD_SearchDefinition','EntityType','VARCHAR(40)',null,'U') +; + +INSERT INTO t_alter_column values('AD_Style','EntityType','VARCHAR(40)',null,'U') +; + +INSERT INTO t_alter_column values('AD_StyleLine','EntityType','VARCHAR(40)',null,'U') +; + +INSERT INTO t_alter_column values('AD_ToolBarButton','EntityType','VARCHAR(40)',null,'U') +; + +INSERT INTO t_alter_column values('AD_ZoomCondition','EntityType','VARCHAR(40)',null,'U') +; + +INSERT INTO t_alter_column values('PA_DocumentStatus','EntityType','VARCHAR(40)',null,'U') +; + +SELECT register_migration_script('201912271715_IDEMPIERE-3952.sql') FROM dual +; +