-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add implicit sqlite rowid columns to print-schema output #3926
Add implicit sqlite rowid columns to print-schema output #3926
Conversation
11d4b4f
to
e502cbb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, for the fast fix 👍
This looks fine beside that minor thing with making rowid
columns not nullable. (That will likely require updating the generated schema.rs file)
e502cbb
to
03c4fad
Compare
Can you rebase the branch to pull in the latest changes (to fix the CI)? |
03c4fad
to
b7803b6
Compare
I have debased but the tests still fail with errors imo unrelated to the actual change. What needs to happen to get this merged? |
Seems like we have hit exactly that time window where a new stable rustc version dropped. That usually means that new lints fire off and cause issues. If you don't mind you can push a change that fixes that, otherwise I will try to take care of that later today. |
Can you rebase the PR again to pull in the fixes for the CI? |
Whenever sqlite uses an implicit rowid it also need to be added as column to the corresponding schema. This change fixes the implicit primary key generator added in diesel-rs#3680 which was never tested as the test added in this pull request never actually is run. This change enables the test and enhances the schema printer to generate the missing column if the primary key is an implicit rowid column. Related: diesel-rs#2149
Head branch was pushed to by a user without write access
b7803b6
to
8c4fa4a
Compare
Whenever sqlite uses an implicit rowid it also need to be added as column to the corresponding schema. This change fixes the implicit primary key generator added in #3680 which was never tested as the test added in this pull request never actually is run.
This change enables the test and enhances the schema printer to generate the missing column if the primary key is an implicit rowid column.
Related: #2149