WIP: force remove index for package_extent
This commit is contained in:
parent
12eb8c05e0
commit
77558ec3bf
|
@ -71,13 +71,13 @@ def spatial_setup():
|
||||||
if not table.exists():
|
if not table.exists():
|
||||||
create_postgis_tables()
|
create_postgis_tables()
|
||||||
|
|
||||||
# When running the tests with the --reset-db option for some
|
# When running the tests with the --reset-db option for some
|
||||||
# reason the metadata holds a reference to the `package_extent`
|
# reason the metadata holds a reference to the `package_extent`
|
||||||
# table after being deleted, causing an InvalidRequestError
|
# table after being deleted, causing an InvalidRequestError
|
||||||
# exception when trying to recreate it further on
|
# exception when trying to recreate it further on
|
||||||
if "package_extent" in meta.metadata.tables:
|
if "package_extent" in meta.metadata.tables:
|
||||||
meta.metadata.remove(meta.metadata.tables["package_extent"])
|
meta.metadata.remove(meta.metadata.tables["package_extent"])
|
||||||
Session.execute("DROP INDEX idx_package_extent_the_geom")
|
Session.execute("DROP INDEX idx_package_extent_the_geom")
|
||||||
Session.commit()
|
Session.commit()
|
||||||
|
|
||||||
spatial_db_setup()
|
spatial_db_setup()
|
||||||
|
|
Loading…
Reference in New Issue