Replies: 3 comments 1 reply
-
Ran into the same issue, however, it has only arisen once I've attempted to inherit an additional table model from the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Did you figure out a solution for this? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hey there, Head over there: #876 (comment) to get an answer to your question. The problem is in using sqlalchemy |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
updated_at: Optional[datetime] = Field(sa_column=Column(DateTime(), onupdate=func.now()))
field (took it from How to add current date time by default on a table declaration? #594)alembic revision --autogenerate
and it falls with errorsqlalchemy.exc.ArgumentError: Column object 'updated_at' already assigned to Table 'users'
I saw #743, but it is not my case, because I want to use
onupdate
featureOperating System
macOS
Operating System Details
No response
SQLModel Version
0.0.14
Python Version
3.12.1
Additional Context
Alembic version: 1.13.0
Beta Was this translation helpful? Give feedback.
All reactions