core-jgi/org.adempiere.server-feature/utils.windows/postgresql/MonitoredSyncDB.bat

30 lines
921 B
Batchfile
Raw Permalink Normal View History

2018-12-16 08:47:17 +07:00
@Echo Synchronize iDempiere Database
@Echo Upgrading database %1@%ADEMPIERE_DB_NAME%
@if (%IDEMPIERE_HOME%) == () goto environment
@if (%ADEMPIERE_DB_NAME%) == () goto environment
@if (%ADEMPIERE_DB_SERVER%) == () goto environment
@if (%ADEMPIERE_DB_PORT%) == () goto environment
@Rem Must have parameter: userAccount
@if (%1) == () goto usage
@Echo WARNING: THIS PROGRAM IS NOT DEVELOPED FOR WINDOWS YET - YOU NEED TO APPLY MANUALLY THE PENDING MIGRATION SCRIPTS
@Rem TODO: port postgresql/SyncDB.sh to windows syntax
@goto end
:environment
@Echo Please make sure that the enviroment variables are set correctly:
@Echo IDEMPIERE_HOME e.g. D:\ADEMPIERE2
@Echo ADEMPIERE_DB_NAME e.g. adempiere or xe
@Echo ADEMPIERE_DB_SERVER e.g. dbserver.adempiere.org
@Echo ADEMPIERE_DB_PORT e.g. 5432 or 1521
:usage
@echo Usage: %0 <userAccount>
@echo Examples: %0 ADEMPIERE/ADEMPIERE
:end