Commit 6325ff1144678a996b545778c9a0851724fed1c6

Authored by YunaiV
1 parent 9eeaa115

【功能修复】全局:代码生成器的 `tenant_id` 字段增加 default 0 值不正确的问题

yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/sql/h2.vm
@@ -23,7 +23,7 @@ CREATE TABLE IF NOT EXISTS "${table.tableName.toLowerCase()}" ( @@ -23,7 +23,7 @@ CREATE TABLE IF NOT EXISTS "${table.tableName.toLowerCase()}" (
23 "${column.columnName}" ${dataType} DEFAULT '', 23 "${column.columnName}" ${dataType} DEFAULT '',
24 #elseif (${column.columnName} == 'deleted') 24 #elseif (${column.columnName} == 'deleted')
25 "deleted" bit NOT NULL DEFAULT FALSE, 25 "deleted" bit NOT NULL DEFAULT FALSE,
26 - #elseif (${column.columnName} == 'tenantId') 26 + #elseif (${column.columnName} == 'tenant_id')
27 "tenant_id" bigint NOT NULL DEFAULT 0, 27 "tenant_id" bigint NOT NULL DEFAULT 0,
28 #else 28 #else
29 "${column.columnName.toLowerCase()}" ${dataType}#if (${column.nullable} == false) NOT NULL#end, 29 "${column.columnName.toLowerCase()}" ${dataType}#if (${column.nullable} == false) NOT NULL#end,