amplify-category-api
amplify-category-api copied to clipboard
fix(api): handle attribute type change on gsi
Description of changes
Fix the bug: Attribute type changes are not reflected in amplify managed tables.
To resolve this, we will delete all the indexes referencing the attribute with type changes and recreate them.
CDK / CloudFormation Parameters Changed
NA
Issue #, if available
NA
Description of how you validated changes
- Manual test
- New E2E test
Checklist
- [x] PR description included
- [x]
yarn testpasses - [x] Tests are changed or added
- [ ] Relevant documentation is changed or added (and PR referenced)
- [ ] New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
- [ ] Any CDK or CloudFormation parameter changes are called out explicitly
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.