Skip to content

Using db_column_name when adding columns to existing tables using auto migrations #945

Description

@dantownsend

You can explicitly specify the database column name:

class MyTable(Table):
    type_ = Varchar(db_column_name="type")

When using auto migrations to add such a column to an existing table, it seems like db_column_name isn't being used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions