diff --git a/migration/360lts-release/oracle/821_IDEMPIERE-137_GLReconciliation.sql b/migration/360lts-release/oracle/821_IDEMPIERE-137_GLReconciliation.sql index c88ace8edb..8e2f198c22 100644 --- a/migration/360lts-release/oracle/821_IDEMPIERE-137_GLReconciliation.sql +++ b/migration/360lts-release/oracle/821_IDEMPIERE-137_GLReconciliation.sql @@ -2242,3 +2242,8 @@ THEN (SELECT MAX(CASE WHEN i.DocStatus IN (''VO'', ''RE'') AND i.Reversal_ID > 0 FROM Fact_Acct fa WHERE fa.Fact_Acct_id=Fact_Reconciliation.Fact_Acct_ID',Updated=TO_DATE('2010-09-03 12:02:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Rule_ID=50004 ; +UPDATE AD_System + SET LastMigrationScriptApplied='821_IDEMPIERE-137_GLReconciliation.sql' +WHERE LastMigrationScriptApplied<'821_IDEMPIERE-137_GLReconciliation.sql' + OR LastMigrationScriptApplied IS NULL +; diff --git a/migration/360lts-release/oracle/822_IDEMPIERE-137_Ambidexter_GL_Rec.sql b/migration/360lts-release/oracle/822_IDEMPIERE-137_Ambidexter_GL_Rec.sql index 410b42ebaf..be7ebdc507 100644 --- a/migration/360lts-release/oracle/822_IDEMPIERE-137_Ambidexter_GL_Rec.sql +++ b/migration/360lts-release/oracle/822_IDEMPIERE-137_Ambidexter_GL_Rec.sql @@ -37,3 +37,8 @@ ALTER TABLE Fact_Reconciliation ADD Fact_Reconciliation_ID NUMBER(10) NOT NULL ALTER TABLE Fact_Reconciliation ADD CONSTRAINT Fact_Reconciliation_Key PRIMARY KEY (Fact_Reconciliation_ID) ; +UPDATE AD_System + SET LastMigrationScriptApplied='822_IDEMPIERE-137_Ambidexter_GL_Rec.sql' +WHERE LastMigrationScriptApplied<'822_IDEMPIERE-137_Ambidexter_GL_Rec.sql' + OR LastMigrationScriptApplied IS NULL +; diff --git a/migration/360lts-release/postgresql/821_IDEMPIERE-137_GLReconciliation.sql b/migration/360lts-release/postgresql/821_IDEMPIERE-137_GLReconciliation.sql index 39cc30d4bf..9ff6f5146d 100644 --- a/migration/360lts-release/postgresql/821_IDEMPIERE-137_GLReconciliation.sql +++ b/migration/360lts-release/postgresql/821_IDEMPIERE-137_GLReconciliation.sql @@ -2239,4 +2239,8 @@ THEN (SELECT MAX(CASE WHEN i.DocStatus IN (''VO'', ''RE'') AND i.Reversal_ID > 0 FROM Fact_Acct fa WHERE fa.Fact_Acct_id=Fact_Reconciliation.Fact_Acct_ID',Updated=TO_TIMESTAMP('2010-09-03 12:02:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Rule_ID=50004 ; - +UPDATE AD_System + SET LastMigrationScriptApplied='821_IDEMPIERE-137_GLReconciliation.sql' +WHERE LastMigrationScriptApplied<'821_IDEMPIERE-137_GLReconciliation.sql' + OR LastMigrationScriptApplied IS NULL +; diff --git a/migration/360lts-release/postgresql/822_IDEMPIERE-137_Ambidexter_GL_Rec.sql b/migration/360lts-release/postgresql/822_IDEMPIERE-137_Ambidexter_GL_Rec.sql index 73ef3ecc56..77801999e7 100644 --- a/migration/360lts-release/postgresql/822_IDEMPIERE-137_Ambidexter_GL_Rec.sql +++ b/migration/360lts-release/postgresql/822_IDEMPIERE-137_Ambidexter_GL_Rec.sql @@ -37,3 +37,8 @@ ALTER TABLE Fact_Reconciliation ADD COLUMN Fact_Reconciliation_ID NUMERIC(10) NO ALTER TABLE Fact_Reconciliation ADD CONSTRAINT Fact_Reconciliation_Key PRIMARY KEY (Fact_Reconciliation_ID) ; +UPDATE AD_System + SET LastMigrationScriptApplied='822_IDEMPIERE-137_Ambidexter_GL_Rec.sql' +WHERE LastMigrationScriptApplied<'822_IDEMPIERE-137_Ambidexter_GL_Rec.sql' + OR LastMigrationScriptApplied IS NULL +;