Skip to content

Commit

Permalink
Try to reload GS
Browse files Browse the repository at this point in the history
  • Loading branch information
jirik committed Dec 20, 2023
1 parent ab4440e commit aba543d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/layman/upgrade/upgrade_v1_23.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging

from geoserver import util as gs_util
from db import util as db_util
from layman import settings

Expand Down Expand Up @@ -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)

0 comments on commit aba543d

Please sign in to comment.