Plsm icon indicating copy to clipboard operation
Plsm copied to clipboard

fixes #104: fixes duplicate fields issue and adds support for compound primary keys

Open tomjoro opened this issue 4 years ago • 0 comments

fixes #104

  • Add support for composite primary keys
  • Fixes bug where repeated keys in indexes generate duplicate fields.

Composite primary keys are supported by generated multiple true primary_key fields according to ecto specifications.

I also changed code so it only emits primary_key when it is true. This makes it much more readable.

This fix only affects Postgres.

tomjoro avatar Aug 13 '21 06:08 tomjoro