Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dismiss MapStore 1 GeoStore Database #167

Open
randomorder opened this issue Jul 10, 2020 · 1 comment
Open

Dismiss MapStore 1 GeoStore Database #167

randomorder opened this issue Jul 10, 2020 · 1 comment
Assignees

Comments

@randomorder
Copy link
Member

We just dismissed MapStore 1 from the BZ Infrastructure but its GeoStore database couldn't be removed because is still being used by MapStore2 and GeoServer. To have both MapStore 1 and MapStore 2 available at the same time in the infrastructure, a view was set up on the MapStore 1 GeoStore database in order to share users and groups with MapStore 2. The same database is also used by GeoServer for the usergroup and role services.

We'll have to backup and remove the view and fix the mapstore 2 geostore db and update geoserver to use this db before we drop the old geostore db.

@randomorder
Copy link
Member Author

This is the MapStore2 GeoStore Database @tdipisa

The views are pointing to the Mapstore1 users / groups

image

CREATE OR REPLACE FORCE VIEW "GEOSTORE2"."GS_USER" ("ID", "NAME", "USER_PASSWORD", "USER_ROLE", "GROUP_ID", "ENABLED") AS 
  SELECT "ID","NAME","USER_PASSWORD","USER_ROLE","GROUP_ID","ENABLED"    
FROM "GEOSTORE"."GS_USER";
CREATE OR REPLACE FORCE VIEW "GEOSTORE2"."GS_USERGROUP" ("ID", "GROUPNAME", "DESCRIPTION", "ENABLED") AS 
  SELECT "ID","GROUPNAME","DESCRIPTION","ENABLED"    
FROM "GEOSTORE"."GS_USERGROUP";
CREATE OR REPLACE FORCE VIEW "GEOSTORE2"."GS_USERGROUP_MEMBERS" ("USER_ID", "GROUP_ID") AS 
  SELECT "USER_ID","GROUP_ID"    
FROM "GEOSTORE"."GS_USERGROUP_MEMBERS";
CREATE OR REPLACE FORCE VIEW "GEOSTORE2"."GS_USER_ATTRIBUTE" ("ID", "NAME", "STRING", "USER_ID") AS 
  SELECT "ID","NAME","STRING","USER_ID"    
FROM "GEOSTORE"."GS_USER_ATTRIBUTE";

Unfortunately I am not allowed to dump the database with my client application. We can eventually ask ComuneBZ to do it for us

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant