From ec0af3b0fb56acd65dfeac48993cd0356d4e2647 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 1 Aug 2012 15:48:35 -0500 Subject: [PATCH] IDEMPIERE-344 Improve usability for GL Journal / Migration script didn't cover account --- .../oracle/858_IDEMPIERE-344_GLJournalImprovement.sql | 8 ++++++++ .../postgresql/858_IDEMPIERE-344_GLJournalImprovement.sql | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 migration/360lts-release/oracle/858_IDEMPIERE-344_GLJournalImprovement.sql create mode 100644 migration/360lts-release/postgresql/858_IDEMPIERE-344_GLJournalImprovement.sql 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 +;