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

Alembic Generates Incorrect DDL For ALTER COLUMN... SET DEFAULT ... #727

Description

@waltaskew

Alembic generates incorrect DDL for ALTER COLUMN... SET DEFAULT ...
It renders the default values without parentheses, e.g.

ALTER TABLE ... ALTER COLUMN .. SET DEFAULT GENERATE_UUID();
rather than
ALTER TABLE ... ALTER COLUMN .. SET DEFAULT (GENERATE_UUID());

This is because the dialect doesn't implement get_column_default_string and wrap the value in parentheses there as alembic expects.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the googleapis/python-spanner-sqlalchemy API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions