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:
Carlos Ruiz 2013-04-25 00:42:24 -05:00
parent eedeffda42
commit dfff7295f1
2 changed files with 20 additions and 0 deletions

View File

@ -16,6 +16,17 @@ then
SYSUSER=postgres
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 == The import will show warnings. This is OK ==
cd $IDEMPIERE_HOME/data/seed

View File

@ -8,6 +8,15 @@ SET SYSUSER=system
if (%ADEMPIERE_DB_PATH%) == (postgresql) SET SUFFIX=_pg
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%)
cd %IDEMPIERE_HOME%\data\seed
jar xvf Adempiere%SUFFIX%.jar