Database seeds - added support to import postgres 9.1 or higher (default) - and to import postgres 8.4 or 9.0 you can run RUN_ImportIdempiere.[bat|sh] 8.4
This commit is contained in:
parent
eedeffda42
commit
dfff7295f1
|
@ -16,6 +16,17 @@ then
|
||||||
SYSUSER=postgres
|
SYSUSER=postgres
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# for oracle or postgres version 9.1 or higher you run this the usual way:
|
||||||
|
# RUN_ImportIdempiere.sh
|
||||||
|
# for postgres versions 8.4 or 9.0 you can run this way:
|
||||||
|
# RUN_ImportIdempiere.sh 8.4
|
||||||
|
# or
|
||||||
|
# RUN_ImportIdempiere.sh 9.0
|
||||||
|
if [ "x$1" = x8.4 -o "x$1" = x9.0 ]
|
||||||
|
then
|
||||||
|
SUFFIX="_pg84"
|
||||||
|
fi
|
||||||
|
|
||||||
echo Re-Create idempiere User and import $IDEMPIERE_HOME/data/Adempiere${SUFFIX}.dmp - \($ADEMPIERE_DB_NAME\)
|
echo Re-Create idempiere User and import $IDEMPIERE_HOME/data/Adempiere${SUFFIX}.dmp - \($ADEMPIERE_DB_NAME\)
|
||||||
echo == The import will show warnings. This is OK ==
|
echo == The import will show warnings. This is OK ==
|
||||||
cd $IDEMPIERE_HOME/data/seed
|
cd $IDEMPIERE_HOME/data/seed
|
||||||
|
|
|
@ -8,6 +8,15 @@ SET SYSUSER=system
|
||||||
if (%ADEMPIERE_DB_PATH%) == (postgresql) SET SUFFIX=_pg
|
if (%ADEMPIERE_DB_PATH%) == (postgresql) SET SUFFIX=_pg
|
||||||
if (%ADEMPIERE_DB_PATH%) == (postgresql) SET SYSUSER=postgres
|
if (%ADEMPIERE_DB_PATH%) == (postgresql) SET SYSUSER=postgres
|
||||||
|
|
||||||
|
@Rem for oracle or postgres version 9.1 or higher you run this the usual way:
|
||||||
|
@Rem RUN_ImportIdempiere.sh
|
||||||
|
@Rem for postgres versions 8.4 or 9.0 you can run this way:
|
||||||
|
@Rem RUN_ImportIdempiere.sh 8.4
|
||||||
|
@Rem or
|
||||||
|
@Rem RUN_ImportIdempiere.sh 9.0
|
||||||
|
if (%1) == (8.4) SET SUFFIX=_pg84
|
||||||
|
if (%1) == (9.0) SET SUFFIX=_pg84
|
||||||
|
|
||||||
@echo Re-Create idempiere User and import %IDEMPIERE_HOME%\data\Adempiere.dmp - (%ADEMPIERE_DB_NAME%)
|
@echo Re-Create idempiere User and import %IDEMPIERE_HOME%\data\Adempiere.dmp - (%ADEMPIERE_DB_NAME%)
|
||||||
cd %IDEMPIERE_HOME%\data\seed
|
cd %IDEMPIERE_HOME%\data\seed
|
||||||
jar xvf Adempiere%SUFFIX%.jar
|
jar xvf Adempiere%SUFFIX%.jar
|
||||||
|
|
Loading…
Reference in New Issue