Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MariaDB, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
22.75k stars 1.57k forks source link

Tinyint values are interpreted as bool by default and the interface does not let you edit the column type #14782

Open ArnoldHueteG opened 1 month ago

ArnoldHueteG commented 1 month ago

Checklist

Hosting

Describe the bug When a SQL Server table with field of type "tinyint" is imported, it is interpreted as a boolean value and the interface does not let you to change the data type. image

To Reproduce Steps to reproduce the behavior:

  1. Create a table with a tinyint field in sql server, add a few values
  2. Import table and see the table with all values check.
  3. image

Expected behavior The field should be integer number

Screenshots The screenshots are above.

Additional context

image

For some reason the exported schema shows table with duplicated columns:

CREATE TABLE [TB_TesoreriaTipo] (
TipoID tinyint(1) NOT NULL,
TipoID tinyint(1) NOT NULL,
Tipo varchar(100) NULL,
Tipo varchar(100) NULL,
 CONSTRAINT [PK_TB_TesoreriaTipo] PRIMARY KEY (TipoID)
);
linear[bot] commented 1 month ago

BUDI-8735 Tinyint values are interpreted as bool by default and the interface does not let you edit the column type