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 10, 2019
1 parent 5d2a1af commit 402b968
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ 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 +102,11 @@ 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
))
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' interface will be removed, If you don't want that,
you should rename the interfaces befor aplying 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 402b968

Please sign in to comment.