Преглед изворни кода

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

疯狂的狮子Li пре 1 месец
родитељ
комит
65c54184e8

+ 5 - 0
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/domain/SysOss.java

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

+ 5 - 0
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/domain/bo/SysOssBo.java

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

+ 5 - 0
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/domain/vo/SysOssVo.java

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

+ 2 - 0
script/sql/oracle/oracle_ry_vue_5.X.sql

@@ -1159,6 +1159,7 @@ create table sys_oss (
   file_suffix     varchar2(10)   not null,
   url             varchar2(500)  not null,
   service         varchar2(20)   default 'minio' not null,
+  ext1            varchar2(255)  default '',
   create_dept     number(20)     default null,
   create_by       number(20)     default null,
   create_time     date,
@@ -1176,6 +1177,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 '上传者';

+ 2 - 0
script/sql/postgres/postgres_ry_vue_5.X.sql

@@ -1160,6 +1160,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(255) default ''::varchar,
     create_dept   int8,
     create_by     int8,
     create_time   timestamp,
@@ -1176,6 +1177,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 '创建时间';

+ 1 - 0
script/sql/ry_vue_5.X.sql

@@ -828,6 +828,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 '上传人',

+ 7 - 0
script/sql/sqlserver/sqlserver_ry_vue_5.X.sql

@@ -2923,6 +2923,7 @@ CREATE TABLE sys_oss
     original_name nvarchar(255) DEFAULT ''        NOT NULL,
     file_suffix   nvarchar(10)  DEFAULT ''        NOT NULL,
     url           nvarchar(500)                   NOT NULL,
+    ext1          nvarchar(255) DEFAULT ''        NULL,
     create_dept   bigint                          NULL,
     create_time   datetime2(7)                    NULL,
     create_by     bigint                          NULL,
@@ -2972,6 +2973,12 @@ EXEC sp_addextendedproperty
     'TABLE', N'sys_oss',
     'COLUMN', N'url'
 GO
+EXEC sp_addextendedproperty
+    'MS_Description', N'扩展字段',
+    'SCHEMA', N'dbo',
+    'TABLE', N'sys_oss',
+    'COLUMN', N'ext1'
+GO
 EXEC sys.sp_addextendedproperty
     'MS_Description', N'创建部门' ,
     'SCHEMA', N'dbo',

+ 3 - 0
script/sql/update/oracle/update_5.3.0-5.3.1.sql

@@ -1,3 +1,6 @@
 ALTER TABLE flow_node DROP COLUMN skip_any_node;
 ALTER TABLE flow_node ADD (ext VARCHAR2(500));
 COMMENT ON COLUMN flow_node.ext IS '扩展属性';
+
+ALTER TABLE sys_oss ADD (ext1 VARCHAR2(255));
+COMMENT ON COLUMN sys_oss.ext1 IS '扩展属性';

+ 3 - 0
script/sql/update/postgres/update_5.3.0-5.3.1.sql

@@ -1,3 +1,6 @@
 ALTER TABLE flow_node DROP COLUMN skip_any_node;
 ALTER TABLE flow_node ADD COLUMN ext varchar(500);
 COMMENT ON COLUMN flow_node.ext IS '扩展属性';
+
+ALTER TABLE sys_oss ADD COLUMN ext1 varchar(255));
+COMMENT ON COLUMN sys_oss.ext1 IS '扩展属性';

+ 9 - 0
script/sql/update/sqlserver/update_5.3.0-5.3.1.sql

@@ -7,3 +7,12 @@ EXEC sp_addextendedproperty
 'TABLE', N'flow_node',
 'COLUMN', N'ext'
 GO
+
+ALTER TABLE sys_oss ADD ext1 nvarchar(255) NULL;
+
+EXEC sp_addextendedproperty
+'MS_Description', N'扩展属性',
+'SCHEMA', N'dbo',
+'TABLE', N'sys_oss',
+'COLUMN', N'ext1'
+GO

+ 3 - 0
script/sql/update/update_5.3.0-5.3.1.sql

@@ -1,3 +1,6 @@
 ALTER TABLE `flow_node` DROP COLUMN `skip_any_node`;
 ALTER TABLE `flow_node`
     ADD COLUMN `ext` text NULL COMMENT '扩展属性' AFTER `update_time`;
+
+ALTER TABLE `sys_oss`
+    ADD COLUMN `ext1` text NULL COMMENT '扩展属性' AFTER `url`;