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
Hey,
I'm using a custom timescaledb dialect similar to this: https://github.com/dorosch/sqlalchemy-timescaledb
And it works flawlessly in SQLAlquemy. I would like to transition now to SQLModel, but was not able to find a way of also replicating this here.
With SQLAlquemy the resulting DDL looks similar to this:
I would like to continue use the autogenerated migrations. What am I doing wrong? I experimented with custom Constraints, but none of them end up in the create table operation. What is the correct way of doing this? Thanks in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
Hey,
I'm using a custom timescaledb dialect similar to this: https://github.com/dorosch/sqlalchemy-timescaledb
And it works flawlessly in SQLAlquemy. I would like to transition now to SQLModel, but was not able to find a way of also replicating this here.
With SQLAlquemy the resulting DDL looks similar to this:
But when I do the same with SQLModel, the
timescaledb_hypertable
argument is not passed on, and it looks like this:I would like to continue use the autogenerated migrations. What am I doing wrong? I experimented with custom Constraints, but none of them end up in the create table operation. What is the correct way of doing this? Thanks in advance!
Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.24
Python Version
Python 3.12.8
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions