-
-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
psycopg2.errors.UndefinedObject: type MY_ENUM does not exist #131
Comments
This is related to SQLAlchemy, not to SQLModel. |
I don't think this is a SQL alchemy issue at all, I think it's related to: #164 |
It seems this issue is indeed related to #164. I'm having the same issue when spinning up a Postgres db with
results in:
Is there a solution or workaround? |
Additional info: this only happens when the tables in a database don't exist . So like the example above when you spin up a new postgres db for unittesting. Let's assume I have two local databases db_heroes and db_heroes2. The database db_heroes has a table as described in the However, when I change the type of
|
First Check
Commit to Help
Example Code
Description
SQLModel.metadata.create_all(engine)
Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.4
Python Version
3.9.7
Additional Context
No response
The text was updated successfully, but these errors were encountered: