From 57c669ce719f227810b486f69263f216f40abf72 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 11 Jul 2012 08:09:50 -0700 Subject: [PATCH] Fix latest migration scripts --- migration/360lts-release/oracle/849_IDEMPIERE-85.sql | 6 ++++++ migration/360lts-release/oracle/850_IDEMPIERE-328.sql | 6 ++++++ migration/360lts-release/postgresql/849_IDEMPIERE-85.sql | 6 ++++++ migration/360lts-release/postgresql/850_IDEMPIERE-328.sql | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/migration/360lts-release/oracle/849_IDEMPIERE-85.sql b/migration/360lts-release/oracle/849_IDEMPIERE-85.sql index 711f314bf6..e0017be07c 100644 --- a/migration/360lts-release/oracle/849_IDEMPIERE-85.sql +++ b/migration/360lts-release/oracle/849_IDEMPIERE-85.sql @@ -18,3 +18,9 @@ INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,E INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200005 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) ; +UPDATE AD_System + SET LastMigrationScriptApplied='849_IDEMPIERE-85.sql' +WHERE LastMigrationScriptApplied<'849_IDEMPIERE-85.sql' + OR LastMigrationScriptApplied IS NULL +; + diff --git a/migration/360lts-release/oracle/850_IDEMPIERE-328.sql b/migration/360lts-release/oracle/850_IDEMPIERE-328.sql index 2aa9daec1a..47dfb6ab78 100644 --- a/migration/360lts-release/oracle/850_IDEMPIERE-328.sql +++ b/migration/360lts-release/oracle/850_IDEMPIERE-328.sql @@ -8,3 +8,9 @@ ALTER TABLE AD_UserDef_Field MODIFY DefaultValue NVARCHAR2(2000) DEFAULT NULL ALTER TABLE AD_UserDef_Field MODIFY DefaultValue NULL ; +UPDATE AD_System + SET LastMigrationScriptApplied='850_IDEMPIERE-328.sql' +WHERE LastMigrationScriptApplied<'850_IDEMPIERE-328.sql' + OR LastMigrationScriptApplied IS NULL +; + diff --git a/migration/360lts-release/postgresql/849_IDEMPIERE-85.sql b/migration/360lts-release/postgresql/849_IDEMPIERE-85.sql index 1b33ba9e09..294f5edc7d 100644 --- a/migration/360lts-release/postgresql/849_IDEMPIERE-85.sql +++ b/migration/360lts-release/postgresql/849_IDEMPIERE-85.sql @@ -18,3 +18,9 @@ INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,E INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200005 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) ; +UPDATE AD_System + SET LastMigrationScriptApplied='849_IDEMPIERE-85.sql' +WHERE LastMigrationScriptApplied<'849_IDEMPIERE-85.sql' + OR LastMigrationScriptApplied IS NULL +; + diff --git a/migration/360lts-release/postgresql/850_IDEMPIERE-328.sql b/migration/360lts-release/postgresql/850_IDEMPIERE-328.sql index 8b7efc5d4f..01cf564b2d 100644 --- a/migration/360lts-release/postgresql/850_IDEMPIERE-328.sql +++ b/migration/360lts-release/postgresql/850_IDEMPIERE-328.sql @@ -8,3 +8,9 @@ INSERT INTO t_alter_column values('ad_userdef_field','DefaultValue','VARCHAR(200 INSERT INTO t_alter_column values('ad_userdef_field','DefaultValue',null,'NULL',null) ; +UPDATE AD_System + SET LastMigrationScriptApplied='850_IDEMPIERE-328.sql' +WHERE LastMigrationScriptApplied<'850_IDEMPIERE-328.sql' + OR LastMigrationScriptApplied IS NULL +; +