We recently changed the type of one column in our database from integer to enums, with values from 0, 1, 2 to monthly, quarterly, yearly. We updated models accordingly. In Forest, under the layout editor, we were using the “alter values” feature to virtually map 0, 1, 2 to “monthly, quarterly, yearly”. We also migrated the values in our database, so we have monthly, quarterly etc instead of 0, 1, 2 for our records now.
Expected behavior
I would expect the new enum type and values to appear in the layout editor, for both the edit and display widgets.
Actual behavior
Both display and edit widget still reflect as numbers
Failure Logs
N/A
Context
We updated models as such vatFrequency: {
type: DataTypes.ENUM(
'monthly',
'quarterly',
'yearly',
),
field: 'vat_frequency',
},
- Package Version:
- Express Version: 4.16.3
- Sequelize Version: 6.3.6
- Database Dialect:
- Database Version: pg 6.4.2
- Project Name: Pennylane