Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

feat(mysql): add unsigned integer types to column type options

t8y23f25a69d233f
diff --git a/apps/desktop/src/lib/tableStructureEditorState.ts b/apps/desktop/src/lib/tableStructureEditorState.ts
index 1702da4f2d..d050b57e50 100644
--- a/apps/desktop/src/lib/tableStructureEditorState.ts
+++ b/apps/desktop/src/lib/tableStructureEditorState.ts
@@ -4,11 +4,17 @@ import type { ColumnExtra, EditableStructureColumn, EditableStructureIndex } fro
export const DATA_TYPE_OPTIONS: Record<string, string[]> = {
mysql: [
"tinyint",
+ "tinyint unsigned",
"smallint",
+ "smallint unsigned",
"mediumint",
+ "mediumint unsigned",
"int",
+ "int unsigned",
"integer",
+ "integer unsigned",
"bigint",
+ "bigint unsigned",
"float",
"double",
"double precision",
@@ -256,12 +262,18 @@ export function getDataTypeOptions(dbType: DatabaseType | undefined): string[] {
export const DEFAULT_TYPE_LENGTHS: Record<string, string> = {
tinyint: "4",
+ "tinyint unsigned": "4",
smallint: "6",
+ "smallint unsigned": "6",
mediumint: "9",
+ "mediumint unsigned": "9",
int: "11",
+ "int unsigned": "11",
integer: "11",
+ "integer unsigned": "11",
int4: "11",
bigint: "20",
+ "bigint unsigned": "20",
int8: "20",
float: "10,2",
real: "10,2",