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

This commit is contained in:
Carlos Ruiz 2019-12-27 17:26:16 +01:00
parent 6c5f285dc4
commit b00ca72938
2 changed files with 61 additions and 0 deletions

View File

@ -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
;

View File

@ -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
;