Difference between revisions of "Applying additional Migration Scripts"
CarlosRuiz (talk | contribs) (Where to find output to review if needed) |
CarlosRuiz (talk | contribs) m |
||
| Line 36: | Line 36: | ||
| − | ''This tutorial is brought to you by [[User:CarlosRuiz|Carlos Ruiz]] from [ | + | ''This tutorial is brought to you by [[User:CarlosRuiz|Carlos Ruiz]] from [https://www.bx-service.com/ BX Service GmbH]. Feel free to improve directly or suggest using the Discussion tab. |
Revision as of 18:46, 4 November 2020
⇐ Table of Contents | Configuring iDempiere within Eclipse | Applying additional Migration Scripts | Running iDempiere within Eclipse ⇒
Automated way (just for linux)
In the console, go to the $IDEMPIERE_REPOSITORY folder and execute the following command:
bash RUN_SyncDBDev.sh
Verify there are no errors, in case of errors you must solve the error and then execute the command again.
NOTE: If you want to review the output of specific migration scripts, the script leaves the output of every script executed in a folder /tmp/SyncDB_out_[##] - where number is a "random" numeric value (process ID of the running script)
Manual way
First get the list of all the migration scripts from here:
ls $IDEMPIERE_REPOSITORY/migration/*/postgresql
Now get the list of all the migration scripts already applied in the database from psql with this command:
select name from ad_migrationscript order by 1
Compare the list of migration scripts with the contents of your AD_MigrationScript table. Apply all the migration scripts pending to apply, in order of file name.
Please check carefully the output of each migration scripts, if you find errors, try to solve it, or ask for help on the support forums
You must repeat the previous for each unapplied migration scripts, it's recommended also to take note of the last applied for future reference.
This tutorial is brought to you by Carlos Ruiz from BX Service GmbH. Feel free to improve directly or suggest using the Discussion tab.
⇐ Table of Contents | Configuring iDempiere within Eclipse | Applying additional Migration Scripts | Running iDempiere within Eclipse ⇒
