Editing Enum fields in Database Manager

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

  1. Database Manager
  2. New table
  3. New Field
  4. Properties
  5. type: ENUM

This has been fixed in Wappler 4.8.3

This topic was automatically closed after 2 days. New replies are no longer allowed.