We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On adding values to an enum type in non-default schema. The generated upgrade migration is the following:
def upgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### op.sync_enum_values('schema_abc', 'enum_abc', ['VALUE_1', 'VALUE_2', 'VALUE_3'], [('table_1', 'col_1')], enum_values_to_rename=[]) # ### end Alembic commands ###
The code at sync_enum_values tries to do the following step:
sync_enum_values
enum_abc_old
enum_abc
However, the last step fails the schema is not specified and hence enum is not found in the default public schema.
The fix for this could be to update the following lines in enum_alteration.py
enum_alteration.py
connection.execute(sqlalchemy.text( f"""DROP TYPE {temporary_enum_name};""" ))
to
connection.execute(sqlalchemy.text( f"""DROP TYPE {schema}.{temporary_enum_name};""" ))
The text was updated successfully, but these errors were encountered:
Test for #34
374b1e9
Specified schema for drop operation in sync_enum_values. Fixes #34
b32573c
RustyGuard
Successfully merging a pull request may close this issue.
On adding values to an enum type in non-default schema. The generated upgrade migration is the following:
The code at
sync_enum_values
tries to do the following step:enum_abc_old
.enum_abc
with updated values and some functions/operatorsenum_abc_old
However, the last step fails the schema is not specified and hence enum is not found in the default public schema.
The fix for this could be to update the following lines in
enum_alteration.py
to
The text was updated successfully, but these errors were encountered: