Skip to content

Commit

Permalink
Alembic DB name change WFS3 to OGCFeat see #431 - final add full down…
Browse files Browse the repository at this point in the history
…grade func (#434)

Was missing, tested full downgrade and then upgrade ok!
  • Loading branch information
justb4 committed Aug 11, 2022
1 parent b470680 commit 0cb2f78
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions GeoHealthCheck/migrations/versions/933717a14052_.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,25 @@ def downgrade():
values({'resource_type': op.inline_literal('OGC:WFS3')})
)

probe_vars = table('probe_vars',
column('probe_class', String)
)

op.execute(
probe_vars.update().
where(probe_vars.c.probe_class == op.inline_literal('GeoHealthCheck.plugins.probe.ogcfeat.OGCFeatCaps')).
values({'probe_class': op.inline_literal('GeoHealthCheck.plugins.probe.wfs3.WFS3Caps')})
)

op.execute(
probe_vars.update().
where(probe_vars.c.probe_class == op.inline_literal('GeoHealthCheck.plugins.probe.ogcfeat.OGCFeatDrilldown')).
values({'probe_class': op.inline_literal('GeoHealthCheck.plugins.probe.wfs3.WFS3Drilldown')})
)

op.execute(
probe_vars.update().
where(probe_vars.c.probe_class == op.inline_literal('GeoHealthCheck.plugins.probe.ogcfeat.OGCFeatOpenAPIValidator')).
values({'probe_class': op.inline_literal('GeoHealthCheck.plugins.probe.wfs3.WFS3OpenAPIValidator')})
)
# ### end Alembic commands ###

0 comments on commit 0cb2f78

Please sign in to comment.