pgroll icon indicating copy to clipboard operation
pgroll copied to clipboard

Unify constraint options in all migrations

Open kvch opened this issue 8 months ago • 1 comments

Now that the constraints in create_table contain all of the possible settings for constraints, we can go ahead and reuse the same writers and provide the same options for create_constraint and column level operations.

  • [ ] primary key
    • [ ] new type in create_constraint https://github.com/xataio/pgroll/pull/698
    • [ ] breaking change: add support for index parameters in inline definition
  • [ ] unique
    • [ ] breaking change: support index parameters
  • [ ] deferrable column level constraints
  • [ ] exclusion constraint https://github.com/xataio/pgroll/issues/677
  • [x] check: https://github.com/xataio/pgroll/pull/670
  • [x] foreign key: https://github.com/xataio/pgroll/pull/653

kvch avatar Feb 13 '25 10:02 kvch