Remove sqlj reference in the db import script.
This commit is contained in:
parent
08c7f55e87
commit
1c374d3bdc
|
@ -15,7 +15,7 @@ if [ "$ADEMPIERE_HOME" = "" -o "$ADEMPIERE_DB_NAME" = "" -o "$ADEMPIERE_DB_SERV
|
||||||
then
|
then
|
||||||
echo "Please make sure that the environment variables are set correctly:"
|
echo "Please make sure that the environment variables are set correctly:"
|
||||||
echo " ADEMPIERE_HOME e.g. /Adempiere"
|
echo " ADEMPIERE_HOME e.g. /Adempiere"
|
||||||
echo " ADEMPIERE_DB_NAME e.g. adempiere or xe"
|
echo " ADEMPIERE_DB_NAME e.g. adempiere or orcl"
|
||||||
echo " ADEMPIERE_DB_SERVER e.g. dbserver.adempiere.org"
|
echo " ADEMPIERE_DB_SERVER e.g. dbserver.adempiere.org"
|
||||||
echo " ADEMPIERE_DB_PORT e.g. 5432 or 1521"
|
echo " ADEMPIERE_DB_PORT e.g. 5432 or 1521"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -41,9 +41,8 @@ createdb --template=template0 -h $ADEMPIERE_DB_SERVER -p $ADEMPIERE_DB_PORT -E
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
echo Import Adempiere_pg.dmp
|
echo Import Adempiere_pg.dmp
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
ADEMPIERE_ALTER_ROLE_SQL="ALTER ROLE $2 SET search_path TO adempiere, sqlj, pg_catalog"
|
ADEMPIERE_ALTER_ROLE_SQL="ALTER ROLE $2 SET search_path TO adempiere, pg_catalog"
|
||||||
psql -h $ADEMPIERE_DB_SERVER -p $ADEMPIERE_DB_PORT -d $ADEMPIERE_DB_NAME -U $2 -c "$ADEMPIERE_ALTER_ROLE_SQL"
|
psql -h $ADEMPIERE_DB_SERVER -p $ADEMPIERE_DB_PORT -d $ADEMPIERE_DB_NAME -U $2 -c "$ADEMPIERE_ALTER_ROLE_SQL"
|
||||||
psql -h $ADEMPIERE_DB_SERVER -p $ADEMPIERE_DB_PORT -d $ADEMPIERE_DB_NAME -U $2 -c "drop schema sqlj cascade"
|
|
||||||
psql -h $ADEMPIERE_DB_SERVER -p $ADEMPIERE_DB_PORT -d $ADEMPIERE_DB_NAME -U $2 -f $ADEMPIERE_HOME/data/Adempiere_pg.dmp
|
psql -h $ADEMPIERE_DB_SERVER -p $ADEMPIERE_DB_PORT -d $ADEMPIERE_DB_NAME -U $2 -f $ADEMPIERE_HOME/data/Adempiere_pg.dmp
|
||||||
ADEMPIERE_ALTER_ROLE_SQL=
|
ADEMPIERE_ALTER_ROLE_SQL=
|
||||||
PGPASSWORD=
|
PGPASSWORD=
|
||||||
|
|
|
@ -29,9 +29,8 @@
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@echo Import Adempiere_pg.dmp
|
@echo Import Adempiere_pg.dmp
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@set ADEMPIERE_ALTER_ROLE_SQL=ALTER ROLE %2 SET search_path TO adempiere, sqlj, pg_catalog
|
@set ADEMPIERE_ALTER_ROLE_SQL=ALTER ROLE %2 SET search_path TO adempiere, pg_catalog
|
||||||
@psql -h %ADEMPIERE_DB_SERVER% -p %ADEMPIERE_DB_PORT% -d %ADEMPIERE_DB_NAME% -U %2 -c "%ADEMPIERE_ALTER_ROLE_SQL%"
|
@psql -h %ADEMPIERE_DB_SERVER% -p %ADEMPIERE_DB_PORT% -d %ADEMPIERE_DB_NAME% -U %2 -c "%ADEMPIERE_ALTER_ROLE_SQL%"
|
||||||
@psql -h %ADEMPIERE_DB_SERVER% -p %ADEMPIERE_DB_PORT% -d %ADEMPIERE_DB_NAME% -U %2 -c "drop schema sqlj cascade"
|
|
||||||
@psql -h %ADEMPIERE_DB_SERVER% -p %ADEMPIERE_DB_PORT% -d %ADEMPIERE_DB_NAME% -U %2 -f %ADEMPIERE_HOME%/data/Adempiere_pg.dmp
|
@psql -h %ADEMPIERE_DB_SERVER% -p %ADEMPIERE_DB_PORT% -d %ADEMPIERE_DB_NAME% -U %2 -f %ADEMPIERE_HOME%/data/Adempiere_pg.dmp
|
||||||
@set ADEMPIERE_ALTER_ROLE_SQL=
|
@set ADEMPIERE_ALTER_ROLE_SQL=
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue