mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	update 优化 调整 oss表key 与 ossconfig的service 字段长度不匹配
This commit is contained in:
		@@ -874,7 +874,7 @@ create table sys_oss (
 | 
			
		||||
  original_name   varchar(255)  not null,
 | 
			
		||||
  file_suffix     varchar(10)  not null,
 | 
			
		||||
  url             varchar(500) not null,
 | 
			
		||||
  service         varchar(10)  default 'minio' not null,
 | 
			
		||||
  service         varchar(20)  default 'minio' not null,
 | 
			
		||||
  create_by       varchar(64)  default '',
 | 
			
		||||
  create_time     date,
 | 
			
		||||
  update_by       varchar(64)  default '',
 | 
			
		||||
@@ -901,7 +901,7 @@ comment on column sys_oss.update_by is '更新者';
 | 
			
		||||
-- ----------------------------
 | 
			
		||||
create table sys_oss_config (
 | 
			
		||||
  oss_config_id   number(20)    not null,
 | 
			
		||||
  config_key      varchar(255)  not null,
 | 
			
		||||
  config_key      varchar(20)   not null,
 | 
			
		||||
  access_key      varchar(255)  default '',
 | 
			
		||||
  secret_key      varchar(255)  default '',
 | 
			
		||||
  bucket_name     varchar(255)  default '',
 | 
			
		||||
 
 | 
			
		||||
@@ -891,7 +891,7 @@ create table if not exists sys_oss
 | 
			
		||||
    create_time   timestamp,
 | 
			
		||||
    update_by     varchar(64)  default ''::varchar,
 | 
			
		||||
    update_time   timestamp,
 | 
			
		||||
    service       varchar(10)  default 'minio'::varchar,
 | 
			
		||||
    service       varchar(20)  default 'minio'::varchar,
 | 
			
		||||
    constraint sys_oss_pk primary key (oss_id)
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
@@ -914,7 +914,7 @@ drop table if exists sys_oss_config;
 | 
			
		||||
create table if not exists sys_oss_config
 | 
			
		||||
(
 | 
			
		||||
    oss_config_id int8,
 | 
			
		||||
    config_key    varchar(255) default ''::varchar not null,
 | 
			
		||||
    config_key    varchar(20)  default ''::varchar not null,
 | 
			
		||||
    access_key    varchar(255) default ''::varchar,
 | 
			
		||||
    secret_key    varchar(255) default ''::varchar,
 | 
			
		||||
    bucket_name   varchar(255) default ''::varchar,
 | 
			
		||||
 
 | 
			
		||||
@@ -655,7 +655,7 @@ create table sys_oss (
 | 
			
		||||
  create_by       varchar(64)           default ''        comment '上传人',
 | 
			
		||||
  update_time     datetime              default null      comment '更新时间',
 | 
			
		||||
  update_by       varchar(64)           default ''        comment '更新人',
 | 
			
		||||
  service         varchar(10)  not null default 'minio'   comment '服务商',
 | 
			
		||||
  service         varchar(20)  not null default 'minio'   comment '服务商',
 | 
			
		||||
  primary key (oss_id)
 | 
			
		||||
) engine=innodb comment ='OSS对象存储表';
 | 
			
		||||
 | 
			
		||||
@@ -665,7 +665,7 @@ create table sys_oss (
 | 
			
		||||
drop table if exists sys_oss_config;
 | 
			
		||||
create table sys_oss_config (
 | 
			
		||||
  oss_config_id   bigint(20)   not null                   comment '主建',
 | 
			
		||||
  config_key      varchar(255)  not null default ''       comment '配置key',
 | 
			
		||||
  config_key      varchar(20)  not null   default ''      comment '配置key',
 | 
			
		||||
  access_key      varchar(255)            default ''      comment 'accessKey',
 | 
			
		||||
  secret_key      varchar(255)            default ''      comment '秘钥',
 | 
			
		||||
  bucket_name     varchar(255)            default ''      comment '桶名称',
 | 
			
		||||
 
 | 
			
		||||
@@ -2116,7 +2116,7 @@ CREATE TABLE [sys_oss]
 | 
			
		||||
    [create_by]     nvarchar(64)  DEFAULT ''        NULL,
 | 
			
		||||
    [update_time]   datetime2(7)                    NULL,
 | 
			
		||||
    [update_by]     nvarchar(64)  DEFAULT ''        NULL,
 | 
			
		||||
    [service]       nvarchar(10)  DEFAULT ('minio') NOT NULL,
 | 
			
		||||
    [service]       nvarchar(20)  DEFAULT ('minio') NOT NULL,
 | 
			
		||||
    CONSTRAINT [PK__sys_oss__91241EA442389F0D] PRIMARY KEY CLUSTERED ([oss_id])
 | 
			
		||||
        WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
 | 
			
		||||
        ON [PRIMARY]
 | 
			
		||||
@@ -2193,7 +2193,7 @@ GO
 | 
			
		||||
CREATE TABLE [sys_oss_config]
 | 
			
		||||
(
 | 
			
		||||
    [oss_config_id] bigint                      NOT NULL,
 | 
			
		||||
    [config_key]    nvarchar(255) DEFAULT ''    NOT NULL,
 | 
			
		||||
    [config_key]    nvarchar(20)  DEFAULT ''    NOT NULL,
 | 
			
		||||
    [access_key]    nvarchar(255) DEFAULT ''    NULL,
 | 
			
		||||
    [secret_key]    nvarchar(255) DEFAULT ''    NULL,
 | 
			
		||||
    [bucket_name]   nvarchar(255) DEFAULT ''    NULL,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user