Closed seeppp closed 2 years ago
@seeppp Thanks for the PR! Could you add a test case to cover the bug fix? Thanks!
@0xTim I added a test case, it does the following:
Almost all other tests are in the FluentKit Benchmarker and there is actually a PR which tests the same case: https://github.com/vapor/fluent-kit/pull/416. If merging both, this and that PR, multiple enum cases are tested twice for PostgreSQL.
Original comment:
Fixes #189
This PR allows to update an enum table with multiple cases. In previous versions, only the last case was added to the database.
This fix is similar to #178, which does the same thing but isn't updated for over a year now.
To test the change, https://github.com/vapor/fluent-kit/pull/416 could be merged as well. In the current version there is no test case to alter an enum table with multiple cases.
Fixes an issue where updating a table to add multiple new enum cases would only add the last case to the database.
Fixes #189