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
When running .create_all() on a model that creates a table called 'domains' the table won't get created. SQLalchemy runs the query:
select relname from pg_class where lower(relname) = 'domains'
That query returns something because the information_schema in PostgreSQL has an object called 'domains'. My model even uses a certain PostgreSQL schema (namespace) so that SQLalchemy wouldn't even find the 'domains' object there. But the "select relname from pg_class..." query is too generic.
I need to run .create_all() with parameters checkfirst=None. But that will break the second time I try it.
The text was updated successfully, but these errors were encountered:
Migrated issue, originally created by Anonymous
When running .create_all() on a model that creates a table called 'domains' the table won't get created. SQLalchemy runs the query:
select relname from pg_class where lower(relname) = 'domains'
That query returns something because the information_schema in PostgreSQL has an object called 'domains'. My model even uses a certain PostgreSQL schema (namespace) so that SQLalchemy wouldn't even find the 'domains' object there. But the "select relname from pg_class..." query is too generic.
I need to run .create_all() with parameters checkfirst=None. But that will break the second time I try it.
The text was updated successfully, but these errors were encountered: