diff --git a/migration/360lts-release/oracle/858_IDEMPIERE-344_GLJournalImprovement.sql b/migration/360lts-release/oracle/858_IDEMPIERE-344_GLJournalImprovement.sql new file mode 100644 index 0000000000..e64ca8a6d6 --- /dev/null +++ b/migration/360lts-release/oracle/858_IDEMPIERE-344_GLJournalImprovement.sql @@ -0,0 +1,8 @@ +UPDATE GL_JournalLine SET Account_ID = (SELECT Account_ID FROM C_ValidCombination vc WHERE vc.C_ValidCombination_ID = GL_JournalLine.C_ValidCombination_ID); +; + +UPDATE AD_System + SET LastMigrationScriptApplied='858_IDEMPIERE-344_GLJournalImprovement.sql' +WHERE LastMigrationScriptApplied<'858_IDEMPIERE-344_GLJournalImprovement.sql' + OR LastMigrationScriptApplied IS NULL +; diff --git a/migration/360lts-release/postgresql/858_IDEMPIERE-344_GLJournalImprovement.sql b/migration/360lts-release/postgresql/858_IDEMPIERE-344_GLJournalImprovement.sql new file mode 100644 index 0000000000..e64ca8a6d6 --- /dev/null +++ b/migration/360lts-release/postgresql/858_IDEMPIERE-344_GLJournalImprovement.sql @@ -0,0 +1,8 @@ +UPDATE GL_JournalLine SET Account_ID = (SELECT Account_ID FROM C_ValidCombination vc WHERE vc.C_ValidCombination_ID = GL_JournalLine.C_ValidCombination_ID); +; + +UPDATE AD_System + SET LastMigrationScriptApplied='858_IDEMPIERE-344_GLJournalImprovement.sql' +WHERE LastMigrationScriptApplied<'858_IDEMPIERE-344_GLJournalImprovement.sql' + OR LastMigrationScriptApplied IS NULL +;