Database Manager Reference field automatically sets knex file to table.integer

======== TEMPLATE BUG FORM ========

Wappler Version : 3.3.6
Operating System : Windows 10

Expected behavior

Reference = field I'm creating
Referenced = existing field in database

When creating reference fields using the Database Manager it should automatically set the knex command for creating the field to the referenced field’s data type.

Example: If the referenced field in the database is of type ‘char’ with a length of 36, then use table.string(‘fiedlName’, 36) instead of table.integer in the knex file so you can create a reference field with the same type as the referenced field.

Actual behavior

The knex file is set to table.integer for all fields. Even if I manually modify the knex file the changes are overwritten when I press save in Wappler to create the field.

How to reproduce

Community Page
Last updated: