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

Support alembic column renames #1097

Closed

Description

@JacobHayes

Is your feature request related to a problem? Please describe.

When renaming a column with alembic, the generated SQL is not valid for BigQuery:

ALTER TABLE `schema`.`table` RENAME `old_name` TO `new_name`

BigQuery expects:

ALTER TABLE `schema`.`table` RENAME COLUMN `old_name` TO `new_name`

Describe the solution you'd like

Override the Alembic ColumnName op to generate the correct syntax.

Describe alternatives you've considered

Define the @compiles(ColumnName, "bigquery") in user code (outside this package)

Activity

  1. added
    api: bigquery
    on Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: bigquery

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions