Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrations change column types #70

Merged
merged 10 commits into from
Feb 13, 2021
Merged

Conversation

dantownsend
Copy link
Member

Piccolo migrations lacked the ability to change a column type. For example, with this schema:

# Old table
class MyTable(Table):
    data = Timestamp()

# New table
class MyTable(Table):
    data = Timestamptz()

The type of the data column has changed. Piccolo migrations will now detect when a column type has changed, and will instruct Postgres to change it.

The issue was reported here:

#56

@dantownsend dantownsend merged commit d66e6a4 into master Feb 13, 2021
@dantownsend dantownsend deleted the migrations_change_column_types branch December 9, 2021 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant