-
Notifications
You must be signed in to change notification settings - Fork 16
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
[BUG] Can't create composite primary key on existing table with 0.21 #420
Comments
hey, @aldebout |
Yes it is, sorry for not including it, I edited. |
fixed that, will be in the next upcoming release |
This should be fixed in |
I still have this issue on v0.21.4, same exact scenario |
Same issue with postgres and v0.22.7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With 0.21.2, after following the migration guide including running
up
,generate
fails to create a migration for the following change to an existing table (only change):Error:
TypeError: Cannot read properties of undefined (reading 'compositePrimaryKeys')
.Dialect is postgres.
userId
andcourseId
are both FKs to other tables, the table I'm creating the PK on is a M2M join table.Reverting back to 0.20.18 I have no issue generating the migration.
The text was updated successfully, but these errors were encountered: