Skip to content

Commit

Permalink
Delete the interfaces link
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Sep 13, 2019
1 parent 5d2a1af commit d526026
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ def upgrade():
name=interface_name, schema=schema
))
if results:
op.execute(
"DELETE it.* FROM {schema}.interface_theme it "
"INNER JOIN {schema}.interface i ON it.interface_id = i.id WHERE i.name='{name}'".format(
name=interface_name, schema=schema
)
)
op.execute("DELETE FROM {schema}.interface WHERE name='{name}'".format(
name=interface_name, schema=schema
))
Expand Down Expand Up @@ -97,6 +103,12 @@ def downgrade():
name=interface_name, schema=schema
))
if results:
op.execute(
"DELETE it.* FROM {schema}.interface_theme it "
"INNER JOIN {schema}.interface i ON it.interface_id = i.id WHERE i.name='{name}'".format(
name=interface_name, schema=schema
)
)
op.execute("DELETE FROM {schema}.interface WHERE name='{name}'".format(
name=interface_name, schema=schema
))
1 change: 1 addition & 0 deletions docker/build/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pyramid_mako==1.0.2 # geoportal
pyramid_multiauth==0.9.0 # geoportal
pyramid_tm==2.2.1 # geoportal
pytest-cov==2.6.1 # tests
pytest-html==1.22.0 # For Travis
pytest-selenium==1.16.0 # admin tests
python-dateutil==2.6.1 # geoportal, rq.filter: <2.7.0
PyYAML==5.1 # geoportal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ Information

2. The WMTS capabilities is now generated on runtime.

3. If not already done the 'api' and 'iframe_api' will be created, and the 'edit' and 'routing' interface
will be removed. After the database upgrade you can run the following request to fill e.-g. the api's
interfaces with the desktop interface:
3. If not already done the 'edit' and 'routing' interfaces and their relations will be removed from the
database, If you don't want that, you should rename the interfaces before applying the alembic scripts.

4. If not already done the 'api' and 'iframe_api' will be created. After the database upgrade you can run
the following request to fill e.-g. the api's interfaces with the desktop interface:

INSERT INTO main.interface_layer (interface_id, layer_id)
SELECT <api_interface_id>, layer_id FROM main.interface_layer WHERE interface_id = <other_interface_id>;
Expand Down

0 comments on commit d526026

Please sign in to comment.