update 优化 sys_oss 表增加扩展字段 ext1

This commit is contained in:
疯狂的狮子Li
2025-03-04 09:57:31 +08:00
parent 3396a590f6
commit 58294e0f39
10 changed files with 26 additions and 6 deletions

View File

@@ -49,12 +49,6 @@
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- SpringCloud Loadbalancer -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-loadbalancer</artifactId>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-http</artifactId>

View File

@@ -42,6 +42,11 @@ public class SysOss extends TenantEntity {
*/
private String url;
/**
* 扩展字段
*/
private String ext1;
/**
* 服务商
*/

View File

@@ -41,6 +41,11 @@ public class SysOssBo extends BaseEntity {
*/
private String url;
/**
* 扩展字段
*/
private String ext1;
/**
* 服务商
*/

View File

@@ -47,6 +47,11 @@ public class SysOssVo implements Serializable {
*/
private String url;
/**
* 扩展字段
*/
private String ext1;
/**
* 创建时间
*/

View File

@@ -1183,6 +1183,7 @@ create table sys_oss (
file_suffix varchar(10) not null,
url varchar(500) not null,
service varchar(20) default 'minio' not null,
ext1 varchar2(255) default '',
create_dept number(20) default null,
create_by number(20) default null,
create_time date,
@@ -1200,6 +1201,7 @@ comment on column sys_oss.original_name is '原名';
comment on column sys_oss.file_suffix is '文件后缀名';
comment on column sys_oss.url is 'URL地址';
comment on column sys_oss.service is '服务商';
comment on column sys_oss.ext1 is '扩展字段';
comment on column sys_oss.create_dept is '创建部门';
comment on column sys_oss.create_time is '创建时间';
comment on column sys_oss.create_by is '上传者';

View File

@@ -1180,6 +1180,7 @@ create table if not exists sys_oss
original_name varchar(255) default ''::varchar not null,
file_suffix varchar(10) default ''::varchar not null,
url varchar(500) default ''::varchar not null,
ext1 varchar(500) default ''::varchar,
create_dept int8,
create_by int8,
create_time timestamp,
@@ -1196,6 +1197,7 @@ comment on column sys_oss.file_name is '文件名';
comment on column sys_oss.original_name is '原名';
comment on column sys_oss.file_suffix is '文件后缀名';
comment on column sys_oss.url is 'URL地址';
comment on column sys_oss.ext1 is '扩展字段';
comment on column sys_oss.create_by is '上传人';
comment on column sys_oss.create_dept is '创建部门';
comment on column sys_oss.create_time is '创建时间';

View File

@@ -849,6 +849,7 @@ create table sys_oss (
original_name varchar(255) not null default '' comment '原名',
file_suffix varchar(10) not null default '' comment '文件后缀名',
url varchar(500) not null comment 'URL地址',
ext1 text default '' comment '扩展字段',
create_dept bigint(20) default null comment '创建部门',
create_time datetime default null comment '创建时间',
create_by bigint(20) default null comment '上传人',

View File

@@ -0,0 +1,2 @@
ALTER TABLE sys_oss ADD (ext1 VARCHAR2(500));
COMMENT ON COLUMN sys_oss.ext1 IS '扩展属性';

View File

@@ -0,0 +1,2 @@
ALTER TABLE sys_oss ADD COLUMN ext1 varchar(500));
COMMENT ON COLUMN sys_oss.ext1 IS '扩展属性';

View File

@@ -0,0 +1,2 @@
ALTER TABLE `sys_oss`
ADD COLUMN `ext1` text NULL COMMENT '扩展属性' AFTER `url`;