From e066da2b0d5e8b6338545ec75f6c58aa9a62a415 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 23 May 2012 09:44:53 -0500 Subject: [PATCH] IDEMPIERE-249 Fix migration script --- migration/360lts-release/oracle/838_IDEMPIERE-249.sql | 5 +++++ migration/360lts-release/postgresql/838_IDEMPIERE-249.sql | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/migration/360lts-release/oracle/838_IDEMPIERE-249.sql b/migration/360lts-release/oracle/838_IDEMPIERE-249.sql index 7262cb51b6..70d33792a4 100644 --- a/migration/360lts-release/oracle/838_IDEMPIERE-249.sql +++ b/migration/360lts-release/oracle/838_IDEMPIERE-249.sql @@ -33,3 +33,8 @@ UPDATE AD_Process_Para SET IsEncrypted='Y',Updated=TO_DATE('2012-05-10 16:47:07' UPDATE AD_Process_Para SET IsEncrypted='Y',Updated=TO_DATE('2012-05-10 16:47:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=517 ; +UPDATE AD_System + SET LastMigrationScriptApplied='838_IDEMPIERE-249.sql' +WHERE LastMigrationScriptApplied<'838_IDEMPIERE-249.sql' + OR LastMigrationScriptApplied IS NULL +; diff --git a/migration/360lts-release/postgresql/838_IDEMPIERE-249.sql b/migration/360lts-release/postgresql/838_IDEMPIERE-249.sql index b66ae6d500..2bd51a9d04 100644 --- a/migration/360lts-release/postgresql/838_IDEMPIERE-249.sql +++ b/migration/360lts-release/postgresql/838_IDEMPIERE-249.sql @@ -33,3 +33,8 @@ UPDATE AD_Process_Para SET IsEncrypted='Y',Updated=TO_TIMESTAMP('2012-05-10 16:4 UPDATE AD_Process_Para SET IsEncrypted='Y',Updated=TO_TIMESTAMP('2012-05-10 16:47:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=517 ; +UPDATE AD_System + SET LastMigrationScriptApplied='838_IDEMPIERE-249.sql' +WHERE LastMigrationScriptApplied<'838_IDEMPIERE-249.sql' + OR LastMigrationScriptApplied IS NULL +;