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
{{ message }}
Repository navigation
how to call sync_trigger in Alembic env.py to keep the Native versioning up-to-date #236
First line just gets you to connection used by alembic. The trigger will be created, but I didn't test the whole thing. On downgrade I tried the same, but the trigger will not be removed.
DIdn't work for me. I used synchronous engine and async engine, both returned
File "/Users/schan/Library/Caches/pypoetry/virtualenvs/leads-v2-iIKbbH54-py3.12/lib/python3.12/site-packages/sqlalchemy_continuum/dialects/postgresql.py", line 480, in sync_trigger
autoload_with=session.connection()
^^^^^^^^^^^^^^^^^^^^
TypeError: '_ConnectionFairy' object is not callable
Activity
austospumanto commentedon May 2, 2020
Bump. Same issue. New triggers are not added when I migrate my schemas via Alembic.
sp-schoen commentedon Sep 7, 2022
I found a working solution. After the autogenerated alembic commands in the migration script I added the following lines in the upgrade function:
First line just gets you to connection used by alembic. The trigger will be created, but I didn't test the whole thing. On downgrade I tried the same, but the trigger will not be removed.
schanjr commentedon Nov 14, 2024
DIdn't work for me. I used synchronous engine and async engine, both returned
Using below versions
psycopg2 = "^2.9.10"
asyncpg = "^0.29.0"
alembic = "^1.13.2"
sqlalchemy-continuum = "^1.4.2"
luca-eiq commentedon Sep 25, 2025
Like this