amplify-category-api
amplify-category-api copied to clipboard
feat: auto increment support
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.
- Definition of
@default
has changed, itsvalue: String
parameter is now optional. -
default-value-transformer
allows novalue
on Int fields if the datasource is Postgres - 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.