Skip to content

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

@waltaskew

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.

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