2012-06-06 21:13:34 +07:00
|
|
|
@Rem $Id: RUN_ImportIdempiere.bat,v 1.12 2005/01/22 21:59:15 jjanke Exp $
|
|
|
|
|
|
|
|
@if (%IDEMPIERE_HOME%) == () (CALL myEnvironment.bat Server) else (CALL %IDEMPIERE_HOME%\utils\myEnvironment.bat Server)
|
|
|
|
@Title Import idempiere - %IDEMPIERE_HOME% (%ADEMPIERE_DB_NAME%)
|
|
|
|
|
2012-06-07 08:00:46 +07:00
|
|
|
SET SUFFIX=
|
|
|
|
SET SYSUSER=system
|
|
|
|
if (%ADEMPIERE_DB_PATH%) == (postgresql) SET SUFFIX=_pg
|
|
|
|
if (%ADEMPIERE_DB_PATH%) == (postgresql) SET SYSUSER=postgres
|
2012-06-06 21:13:34 +07:00
|
|
|
|
|
|
|
@echo Re-Create idempiere User and import %IDEMPIERE_HOME%\data\Adempiere.dmp - (%ADEMPIERE_DB_NAME%)
|
2012-06-07 08:00:46 +07:00
|
|
|
cd %IDEMPIERE_HOME%\data\seed
|
|
|
|
jar xvf Adempiere%SUFFIX%.jar
|
|
|
|
cd %IDEMPIERE_HOME%\utils
|
|
|
|
@dir %IDEMPIERE_HOME%\data\seed\Adempiere%SUFFIX%.dmp
|
2012-06-06 21:13:34 +07:00
|
|
|
@echo == The import will show warnings. This is OK ==
|
|
|
|
@pause
|
|
|
|
|
|
|
|
@Rem Parameter: <systemAccount> <AdempiereID> <AdempierePwd>
|
|
|
|
@Rem globalqss - cruiz - 2007-10-09 - added fourth parameter for postgres (ignored in oracle)
|
2013-04-27 00:09:28 +07:00
|
|
|
@call %ADEMPIERE_DB_PATH%\ImportIdempiere %SYSUSER%/%ADEMPIERE_DB_SYSTEM% %ADEMPIERE_DB_USER% %ADEMPIERE_DB_PASSWORD% %ADEMPIERE_DB_SYSTEM% %SUFFIX%
|
2012-06-06 21:13:34 +07:00
|
|
|
|
2021-01-25 13:14:08 +07:00
|
|
|
@call RUN_SyncDB
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
@call sign-database-build-alt
|
|
|
|
|
2012-06-06 21:13:34 +07:00
|
|
|
@pause
|