Migrate joins to sqlalchemy's query options
Use native pandas read_sql_query and geopandas from_postgis Fix definiiton of status in models Fix table names Fix category fields
This commit is contained in:
parent
956147aea8
commit
75bedb3e91
8 changed files with 236 additions and 190 deletions
|
@ -395,12 +395,11 @@ class Store:
|
|||
for store_name in missing_triger_tables:
|
||||
## XXX: TODO: See https://stackoverflow.com/questions/7888846/trigger-in-sqlachemy
|
||||
model = registry.geom[store_name]
|
||||
|
||||
try:
|
||||
await session.exec(text(
|
||||
ttag_create_trigger.format(
|
||||
schema=model.metadata.schema,
|
||||
table=model.__tablename__)
|
||||
schema=model.__table__.schema,
|
||||
table=model.__table__.name)
|
||||
))
|
||||
except UndefinedTableError:
|
||||
logger.warning(f'table {store_name} does not exist in '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue