This helps improve performance by reducing the amount that these enums take-up in disk-space in their respective tables, and improves performance (however minorly) by reducing memory impact of models requiring only int enums instead of strings and also simplifying the comparisons between values of these types.
However, on larger databases this will likely be a monstrously large migration given the nature of it and it acting on the largest table we have, statuses :')
Description
This helps improve performance by reducing the amount that these enums take-up in disk-space in their respective tables, and improves performance (however minorly) by reducing memory impact of models requiring only int enums instead of strings and also simplifying the comparisons between values of these types.
However, on larger databases this will likely be a monstrously large migration given the nature of it and it acting on the largest table we have, statuses :')
Checklist
go fmt ./...
andgolangci-lint run
.