OS info
- Operating System : Mac OSX 21.1.0
- Wappler Version : 4.4.3
Problem description
When trying to apply database changes when creating a field type ENUM it gives the following error:
Database Update Failed
Database Changes Failed due to an error!
Error: Cannot read property 'join’of undefined
Would you like to open the migration file for inspection?
inspection >>
exports.up = function(knex) {
return knex.schema
.table(‘user’, function (table) {
table.enum(‘test’);
})
};
exports.down = function(knex) {
return knex.schema
.table(‘user’, function (table) {
table.dropColumn(‘test’);
})
};
Tested with MySQL and PostgreSQL and both gave the same error.
report1639232420894.zip (105.0 KB)
Steps to reproduce
- Database Manager
- New table
- New Field
- Properties
- type: ENUM