WIP: remove spatial_ref_sys table in ckan's clean_db
This commit is contained in:
parent
e9af0c8da2
commit
4681706b83
|
@ -36,11 +36,6 @@ def create_postgis_tables():
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def spatial_clean_db(reset_db):
|
def spatial_clean_db(reset_db):
|
||||||
# reset_db will fail to drop table spatial_ref_sys
|
|
||||||
print("debug: spatial_clean_db")
|
|
||||||
if "spatial_ref_sys" in meta.metadata.tables:
|
|
||||||
print("debug: remove spatial_ref_sys from meta.metadata")
|
|
||||||
meta.metadata.remove(meta.metadata.tables["spatial_ref_sys"])
|
|
||||||
reset_db()
|
reset_db()
|
||||||
|
|
||||||
# This will create the PostGIS tables (geometry_columns and
|
# This will create the PostGIS tables (geometry_columns and
|
||||||
|
|
Loading…
Reference in New Issue