fix 修复 代码生成表字段类型不匹配 导致查询不准确问题

feature/model
疯狂的狮子li 2 years ago
parent aec194ba61
commit 15f7a7db65

@ -812,7 +812,7 @@ comment on column gen_table.remark is '备注';
-- ----------------------------
create table gen_table_column (
column_id number(20) not null,
table_id varchar2(64),
table_id number(20),
column_name varchar2(200),
column_comment varchar2(500),
column_type varchar2(100),

@ -614,7 +614,7 @@ create table gen_table (
drop table if exists gen_table_column;
create table gen_table_column (
column_id bigint(20) not null comment '编号',
table_id varchar(64) comment '归属表编号',
table_id bigint(20) comment '归属表编号',
column_name varchar(200) comment '列名称',
column_comment varchar(500) comment '列描述',
column_type varchar(100) comment '列类型',

@ -157,7 +157,7 @@ GO
CREATE TABLE [gen_table_column]
(
[column_id] bigint NOT NULL,
[table_id] nvarchar(64) NULL,
[table_id] bigint NULL,
[column_name] nvarchar(200) NULL,
[column_comment] nvarchar(500) NULL,
[column_type] nvarchar(100) NULL,

@ -8,3 +8,5 @@ update sys_oss_config set endpoint = 'oss-cn-beijing.aliyuncs.com' where oss_con
update sys_oss_config set endpoint = 'cos.ap-beijing.myqcloud.com' where oss_config_id = 4;
insert into sys_oss_config values (5, 'image', 'ruoyi', 'ruoyi123', 'ruoyi', 'image', '127.0.0.1:9000', 'N', '', '1', '', NULL, 'admin', sysdate, 'admin', sysdate, '');
ALTER TABLE "GEN_TABLE_COLUMN" MODIFY ("TABLE_ID" NUMBER(20,0));

@ -22,3 +22,6 @@ GO
INSERT INTO [sys_oss_config] ([oss_config_id], [config_key], [access_key], [secret_key], [bucket_name], [prefix], [endpoint], [domain], [is_https], [region], [status], [ext1], [create_by], [create_time], [update_by], [update_time], [remark]) VALUES (N'5', N'image', N'ruoyi', N'ruoyi123', N'ruoyi', N'image', N'127.0.0.1:9000', N'',N'N', N'', N'1', N'', N'admin', getdate(), N'admin', getdate(), NULL)
GO
ALTER TABLE [gen_table_column] ALTER COLUMN [table_id] bigint NULL
GO

@ -7,3 +7,4 @@ update sys_oss_config set endpoint = 'cos.ap-beijing.myqcloud.com' where oss_con
insert into sys_oss_config values (5, 'image', 'ruoyi', 'ruoyi123', 'ruoyi', 'image', '127.0.0.1:9000', 'N', '', '1', '', 'admin', sysdate(), 'admin', sysdate(), NULL, '');
alter table gen_table_column modify column table_id bigint(0) null default null COMMENT '归属表编号';

Loading…
Cancel
Save