Skip to content
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

fix: update dialect name for ALTER operation overrides #234

Merged
merged 1 commit into from
Aug 26, 2022

Conversation

IlyaFaer
Copy link
Contributor

Fixes #232

@IlyaFaer IlyaFaer added the type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. label Aug 25, 2022
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner-sqlalchemy API. label Aug 25, 2022
existing_type=sa.Unicode(200),
nullable=False,
)
"""
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These strings are used in migration tests as a migration script.
Adding an operation, which was failing in the original issue, to make sure the case is tested.

with open(files[0], "w") as f:
f.write(script_code)
with open(files[0], "wb") as f:
f.write(script_code.encode())
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Locally I've got an error with rewriting a migration script by a program - some symbols were missing. Rewriting the file, using bytes, fixes the problem.

@IlyaFaer IlyaFaer merged commit f9e8ebe into main Aug 26, 2022
@IlyaFaer IlyaFaer deleted the migration_alter branch August 26, 2022 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner-sqlalchemy API. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NOT NULL statements are not working for generated Alembic migrations
2 participants