diff --git a/.env.test b/.env.test index 219359460..9633a26d1 100644 --- a/.env.test +++ b/.env.test @@ -16,7 +16,7 @@ LAYMAN_AUTHN_MODULES=layman.authn.http_header LAYMAN_AUTHN_HTTP_HEADER_NAME=a0468616f9968eaecdc3377988aba650 GRANT_CREATE_PUBLIC_WORKSPACE=EVERYONE GRANT_PUBLISH_IN_PUBLIC_WORKSPACE=EVERYONE -LAYMAN_ROLE_SERVICE_URI=postgresql://docker:docker@postgresql:5432/layman_test?schema=_role_service +LAYMAN_ROLE_SERVICE_URI=postgresql://docker:docker@postgresql:5432/layman_test?autosave=conservative&schema=_role_service # connection parameters to PostgreSQL database LAYMAN_PG_HOST=postgresql diff --git a/src/layman/upgrade/upgrade_v1_23.py b/src/layman/upgrade/upgrade_v1_23.py index 643c1bec5..b777cb5de 100644 --- a/src/layman/upgrade/upgrade_v1_23.py +++ b/src/layman/upgrade/upgrade_v1_23.py @@ -1,5 +1,6 @@ import logging +from geoserver import util as gs_util from db import util as db_util from layman import settings @@ -134,3 +135,5 @@ def create_role_service_schema(): create index group_roles_idx on {ROLE_SERVICE_SCHEMA}.group_roles(rolename,groupname); """ db_util.run_statement(create_other_tables) + + gs_util.reload(settings.LAYMAN_GS_AUTH)