amplify-category-api icon indicating copy to clipboard operation
amplify-category-api copied to clipboard

feat: auto increment support

Open p5quared opened this issue 5 months ago • 0 comments

Description of changes

Transformer changes to support auto increment (serial) fields on Postgres datasources. Accomplished by making the 'create' input types optional when @default is applied.

  1. Definition of @default has changed, its value: String parameter is now optional.
  2. default-value-transformer allows no value on Int fields if the datasource is Postgres
  3. Unit tests for the above
CDK / CloudFormation Parameters Changed

n/a

Description of how you validated changes

Unit tests, existing e2e tests, testTransform. Will write e2e test after implementing changes to Lambda layer.

Checklist

  • [x] PR description included
  • [x] yarn test passes
  • [x] Tests are changed or added
  • [ ] Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

p5quared avatar Sep 18 '24 01:09 p5quared