You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been having issue installing within flask with the following error:
File "/.local/share/virtualenvs/backend-Xo4Co4k2/lib/python3.7/site-packages/sqlalchemy/util/_collections.py", line 194, in __getitem__ return self._data[key] KeyError: "tsrange(issued_at - INTERVAL '1 hour', issued_at)"
Seems to be based on the following from the alembic migration script: postgresql.ExcludeConstraint((sa.column('native_transaction_id'), '='), ("tsrange(issued_at - INTERVAL '1 hour', issued_at)", '&&'), using='gist', name='transaction_unique_native_tx_id')
Tested on both postgres 10 and 11. Any suggestions?
The text was updated successfully, but these errors were encountered:
Through many hours of digging on this exact same issue, I believe the problem is the raw text and it not being sql. wrapping the text in text treats it as sql and it then proceeded to work.
I've been having issue installing within flask with the following error:
File "/.local/share/virtualenvs/backend-Xo4Co4k2/lib/python3.7/site-packages/sqlalchemy/util/_collections.py", line 194, in __getitem__ return self._data[key] KeyError: "tsrange(issued_at - INTERVAL '1 hour', issued_at)"
Seems to be based on the following from the alembic migration script:
postgresql.ExcludeConstraint((sa.column('native_transaction_id'), '='), ("tsrange(issued_at - INTERVAL '1 hour', issued_at)", '&&'), using='gist', name='transaction_unique_native_tx_id')
Tested on both postgres 10 and 11. Any suggestions?
The text was updated successfully, but these errors were encountered: