Explorar o código

fix 修复 sys_config 与 sys_notice 雪花id超长问题

疯狂的狮子Li %!s(int64=4) %!d(string=hai) anos
pai
achega
469ed434fa
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      sql/ry-cloud.sql

+ 2 - 2
sql/ry-cloud.sql

@@ -525,7 +525,7 @@ insert into sys_dict_data values(28, 2,  '失败',     '1',       'sys_common_st
 -- ----------------------------
 drop table if exists sys_config;
 create table sys_config (
-  config_id         int(5)          not null                   comment '参数主键',
+  config_id         bigint(20)      not null                   comment '参数主键',
   config_name       varchar(100)    default ''                 comment '参数名称',
   config_key        varchar(100)    default ''                 comment '参数键名',
   config_value      varchar(500)    default ''                 comment '参数键值',
@@ -563,7 +563,7 @@ create table sys_logininfor (
 -- ----------------------------
 drop table if exists sys_notice;
 create table sys_notice (
-  notice_id         int(4)          not null                   comment '公告ID',
+  notice_id         bigint(20)      not null                   comment '公告ID',
   notice_title      varchar(50)     not null                   comment '公告标题',
   notice_type       char(1)         not null                   comment '公告类型(1通知 2公告)',
   notice_content    longblob        default null               comment '公告内容',