Fix latest migration scripts

This commit is contained in:
Carlos Ruiz 2012-07-11 08:09:50 -07:00
parent 6b90389c4c
commit 57c669ce71
4 changed files with 24 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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