-
Notifications
You must be signed in to change notification settings - Fork 180
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
feat: add support for partitioning #1295
Conversation
The implementation looks quite clean to me 😃 Please add an integration test in https://github.com/salsita/node-pg-migrate/tree/main/test/migrations |
Made the changes, please check. |
Ahh, I see problem with integration tests. Ok I will fix that. |
Beside the failing integration tests, this PR looks awesome and I would wish that every PR is like this. Straight forward and clean. I will approve and merge this when CI is green and will target a release within today or before weekend. |
you can run |
Added support for partitioning for tables.
Supports the follow partition types: 'RANGE', 'LIST', 'HASH'.
Supports collation:
PARTITION BY LIST ("language" COLLATE en_US)
Supports opclass:
Supports multiple columns:
Supports multiple columns with collate:
I tried my best to interpret the Postgresql standard for how this is suppose to work. I wrote a bunch of unit tests and added them to the existing ones. All unit tests are passing.
Also addresses #667