Enum migration misreports an error [ ERROR ] relation "_fluent_enums" does not exist (parserOpenTable) using Postgres DB. In fact the migration is successful and everything is created properly.
Fluent throws the error followed by message Migration Successful
[ ERROR ] relation "_fluent_enums" does not exist (parserOpenTable)Migration successful
Check database. Table _fluent_enums is there as well as records corresponding to our enum.
Expected behavior
I do expect fluent not to throw an error if everything seems to be fine or make migration unsuccessful in case there is an error during execution.
Environment
Vapor Framework version: 4.36.2
Vapor Toolbox version: 18.3.0
Fluent version: 4.1.0
Fluent-kit version: 1.10.2
OS version: 11.1 BigSur (also tested on Ubuntu 20.04)
Describe the bug
Enum migration misreports an error
[ ERROR ] relation "_fluent_enums" does not exist (parserOpenTable)
using Postgres DB. In fact the migration is successful and everything is created properly.To Reproduce
Define enum itself
Setup migration
Run migrate command
swift run Run migrate
Fluent throws the error followed by message Migration Successful
[ ERROR ] relation "_fluent_enums" does not exist (parserOpenTable)
Migration successful
Check database. Table
_fluent_enums
is there as well as records corresponding to our enum.Expected behavior
I do expect fluent not to throw an error if everything seems to be fine or make migration unsuccessful in case there is an error during execution.
Environment