-
Notifications
You must be signed in to change notification settings - Fork 73
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
Composite primary key panic: Too many rows found. #274
Comments
What database is that? And please provide a |
Postgres 12.5 I assume it'll happen irregardless of table structur so long that the PRIMARY KEY constraint is on more than one column
|
Thanks, I will take a look |
This was referenced Aug 27, 2021
v1.5.1 is released with a fix for this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Panic while running init on a table with a composite primary (3 column)
To Reproduce
Create a table with more than one column in the primary key
Expected behavior
for reform to either deal with composite primary keys or quietly skip it for that table, currently
cmd_init.go
seems to panic if the number of columns involved is larger than 1 but also has a warning if it is equal to 1 if OrdinalPosition is bigger than 1 which I do not think is a case that can happenThe text was updated successfully, but these errors were encountered: