set default search path
This commit is contained in:
parent
ed7ac1e533
commit
eb83efa858
|
@ -27,8 +27,12 @@
|
|||
@echo -------------------------------------
|
||||
@echo Import Adempiere_pg.dmp
|
||||
@echo -------------------------------------
|
||||
@set ADEMPIERE_ALTER_ROLE_SQL=ALTER ROLE %2 SET search_path TO adempiere, sqlj, pg_catalog
|
||||
@psql -d %ADEMPIERE_DB_NAME% -U %2 -c "%ADEMPIERE_ALTER_ROLE_SQL%"
|
||||
@psql -d %ADEMPIERE_DB_NAME% -U %2 -c "drop schema sqlj cascade"
|
||||
@psql -d %ADEMPIERE_DB_NAME% -U %2 -f %ADEMPIERE_HOME%/data/Adempiere_pg.dmp
|
||||
@set ADEMPIERE_ALTER_ROLE_SQL=
|
||||
|
||||
|
||||
@set PGPASSWORD=
|
||||
@goto end
|
||||
|
|
|
@ -36,7 +36,7 @@ createdb $ADEMPIERE_DB_NAME -E UNICODE -O $2 -U $2
|
|||
echo -------------------------------------
|
||||
echo Import Adempiere_pg.dmp
|
||||
echo -------------------------------------
|
||||
ADEMPIERE_ALTER_ROLE_SQL = "ALTER ROLE $2 SET search_path TO adempiere, sqjj, pg_catalog"
|
||||
ADEMPIERE_ALTER_ROLE_SQL="ALTER ROLE $2 SET search_path TO adempiere, sqjj, pg_catalog"
|
||||
psql -d $ADEMPIERE_DB_NAME -U $2 -c "$ADEMPIERE_ALTER_ROLE_SQL"
|
||||
psql -d $ADEMPIERE_DB_NAME -U $2 -c "drop schema sqlj cascade"
|
||||
psql -d $ADEMPIERE_DB_NAME -U $2 -f $ADEMPIERE_HOME/data/Adempiere_pg.dmp
|
||||
|
|
Loading…
Reference in New Issue