Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upRenaming the primary key of a table blows everything up #436
Comments
This comment has been minimized.
|
Probably worth mentioning that the value of |
This comment has been minimized.
|
I tried it and can't reproduce. Has this been fixed and the issue forgotten ? Maybe postgres has been fixed ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sgrif commentedSep 12, 2016
A project with the following migration would fail to compile when using
infer_schema!While the column has been renamed, the
pg_attributeentry that the index is pointing to continues to have the old name. This causes our generated code to explode when we dotype PrimaryKey = users::non_standard_pk. I haven't looked too deeply into this. My guess is that there is some indicator on thepg_attributeentry which will indicate that it's no longer being directly used, and the new entry is somehow referencing the old one.