Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

fix: update dialect name for ALTER operation overrides - #234

Merged
IlyaFaer merged 1 commit into
mainfrom
migration_alter
Aug 26, 2022
Merged

fix: update dialect name for ALTER operation overrides#234
IlyaFaer merged 1 commit into
mainfrom
migration_alter

Conversation

@IlyaFaer

Copy link
Copy Markdown

Fixes#232

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

Copy link
Copy Markdown
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.

Comment threadnoxfile.py
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
Copy Markdown
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 marked this pull request as ready for review August 25, 2022 10:16
@IlyaFaer
IlyaFaer merged commit f9e8ebe into mainAug 26, 2022
@IlyaFaer
IlyaFaer deleted the migration_alter branch August 26, 2022 08:21
@release-pleaserelease-pleaseBot mentioned this pull request Oct 4, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spannerIssues related to the googleapis/python-spanner-sqlalchemy API.type: bugError 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

@IlyaFaer@asthamohta