add 增加 sys_oss_config access_policy 桶权限类型字段
This commit is contained in:
parent
cd9c3c3f4f
commit
68193fd37f
@ -910,6 +910,7 @@ create table sys_oss_config (
|
|||||||
domain varchar(255) default '',
|
domain varchar(255) default '',
|
||||||
is_https char(1) default 'N',
|
is_https char(1) default 'N',
|
||||||
region varchar(255) default '',
|
region varchar(255) default '',
|
||||||
|
access_policy char(1) default '1' not null,
|
||||||
status char(1) default '1',
|
status char(1) default '1',
|
||||||
ext1 varchar(255) default '',
|
ext1 varchar(255) default '',
|
||||||
create_by varchar(64) default '',
|
create_by varchar(64) default '',
|
||||||
@ -932,6 +933,7 @@ comment on column sys_oss_config.endpoint is '访问站点';
|
|||||||
comment on column sys_oss_config.domain is '自定义域名';
|
comment on column sys_oss_config.domain is '自定义域名';
|
||||||
comment on column sys_oss_config.is_https is '是否https(Y=是,N=否)';
|
comment on column sys_oss_config.is_https is '是否https(Y=是,N=否)';
|
||||||
comment on column sys_oss_config.region is '域';
|
comment on column sys_oss_config.region is '域';
|
||||||
|
comment on column sys_oss_config.access_policy is '桶权限类型(0=private 1=public 2=custom)';
|
||||||
comment on column sys_oss_config.status is '状态(0=正常,1=停用)';
|
comment on column sys_oss_config.status is '状态(0=正常,1=停用)';
|
||||||
comment on column sys_oss_config.ext1 is '扩展字段';
|
comment on column sys_oss_config.ext1 is '扩展字段';
|
||||||
comment on column sys_oss_config.remark is '备注';
|
comment on column sys_oss_config.remark is '备注';
|
||||||
@ -940,11 +942,11 @@ comment on column sys_oss_config.create_time is '创建时间';
|
|||||||
comment on column sys_oss_config.update_by is '更新者';
|
comment on column sys_oss_config.update_by is '更新者';
|
||||||
comment on column sys_oss_config.update_time is '更新时间';
|
comment on column sys_oss_config.update_time is '更新时间';
|
||||||
|
|
||||||
insert into sys_oss_config values (1, 'minio', 'ruoyi', 'ruoyi123', 'ruoyi', '', '127.0.0.1:9000', '','N', '', '0', '', NULL, 'admin', sysdate, 'admin', sysdate);
|
insert into sys_oss_config values (1, 'minio', 'ruoyi', 'ruoyi123', 'ruoyi', '', '127.0.0.1:9000', '','N', '', '1', '0', '', NULL, 'admin', sysdate, 'admin', sysdate);
|
||||||
insert into sys_oss_config values (2, 'qiniu', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi', '', 's3-cn-north-1.qiniucs.com', '','N', '', '1', '', NULL, 'admin', sysdate, 'admin', sysdate);
|
insert into sys_oss_config values (2, 'qiniu', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi', '', 's3-cn-north-1.qiniucs.com', '','N', '', '1', '1', '', NULL, 'admin', sysdate, 'admin', sysdate);
|
||||||
insert into sys_oss_config values (3, 'aliyun', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi', '', 'oss-cn-beijing.aliyuncs.com', '','N', '', '1', '', NULL, 'admin', sysdate, 'admin', sysdate);
|
insert into sys_oss_config values (3, 'aliyun', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi', '', 'oss-cn-beijing.aliyuncs.com', '','N', '', '1', '1', '', NULL, 'admin', sysdate, 'admin', sysdate);
|
||||||
insert into sys_oss_config values (4, 'qcloud', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-1250000000', '', 'cos.ap-beijing.myqcloud.com', '','N', 'ap-beijing', '1', '', NULL, 'admin', sysdate, 'admin', sysdate);
|
insert into sys_oss_config values (4, 'qcloud', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-1250000000', '', 'cos.ap-beijing.myqcloud.com', '','N', 'ap-beijing', '1', '1', '', NULL, 'admin', sysdate, 'admin', sysdate);
|
||||||
insert into sys_oss_config values (5, 'image', 'ruoyi', 'ruoyi123', 'ruoyi', 'image', '127.0.0.1:9000', '','N', '', '1', '', NULL, 'admin', sysdate, 'admin', sysdate);
|
insert into sys_oss_config values (5, 'image', 'ruoyi', 'ruoyi123', 'ruoyi', 'image', '127.0.0.1:9000', '','N', '', '1', '1', '', NULL, 'admin', sysdate, 'admin', sysdate);
|
||||||
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
|
@ -923,6 +923,7 @@ create table if not exists sys_oss_config
|
|||||||
domain varchar(255) default ''::varchar,
|
domain varchar(255) default ''::varchar,
|
||||||
is_https char default 'N'::bpchar,
|
is_https char default 'N'::bpchar,
|
||||||
region varchar(255) default ''::varchar,
|
region varchar(255) default ''::varchar,
|
||||||
|
access_policy char(1) default '1'::bpchar not null,
|
||||||
status char default '1'::bpchar,
|
status char default '1'::bpchar,
|
||||||
ext1 varchar(255) default ''::varchar,
|
ext1 varchar(255) default ''::varchar,
|
||||||
create_by varchar(64) default ''::varchar,
|
create_by varchar(64) default ''::varchar,
|
||||||
@ -944,6 +945,7 @@ comment on column sys_oss_config.endpoint is '访问站点';
|
|||||||
comment on column sys_oss_config.domain is '自定义域名';
|
comment on column sys_oss_config.domain is '自定义域名';
|
||||||
comment on column sys_oss_config.is_https is '是否https(Y=是,N=否)';
|
comment on column sys_oss_config.is_https is '是否https(Y=是,N=否)';
|
||||||
comment on column sys_oss_config.region is '域';
|
comment on column sys_oss_config.region is '域';
|
||||||
|
comment on column sys_oss_config.access_policy is '桶权限类型(0=private 1=public 2=custom)';
|
||||||
comment on column sys_oss_config.status is '状态(0=正常,1=停用)';
|
comment on column sys_oss_config.status is '状态(0=正常,1=停用)';
|
||||||
comment on column sys_oss_config.ext1 is '扩展字段';
|
comment on column sys_oss_config.ext1 is '扩展字段';
|
||||||
comment on column sys_oss_config.create_by is '创建者';
|
comment on column sys_oss_config.create_by is '创建者';
|
||||||
@ -952,11 +954,11 @@ comment on column sys_oss_config.update_by is '更新者';
|
|||||||
comment on column sys_oss_config.update_time is '更新时间';
|
comment on column sys_oss_config.update_time is '更新时间';
|
||||||
comment on column sys_oss_config.remark is '备注';
|
comment on column sys_oss_config.remark is '备注';
|
||||||
|
|
||||||
insert into sys_oss_config values (1, 'minio', 'ruoyi', 'ruoyi123', 'ruoyi', '', '127.0.0.1:9000', '','N', '', '0', '', 'admin', now(), 'admin', now(), null);
|
insert into sys_oss_config values (1, 'minio', 'ruoyi', 'ruoyi123', 'ruoyi', '', '127.0.0.1:9000', '','N', '', '1', '0', '', 'admin', now(), 'admin', now(), null);
|
||||||
insert into sys_oss_config values (2, 'qiniu', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi', '', 's3-cn-north-1.qiniucs.com', '','N', '', '1', '', 'admin', now(), 'admin', now(), null);
|
insert into sys_oss_config values (2, 'qiniu', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi', '', 's3-cn-north-1.qiniucs.com', '','N', '', '1', '1', '', 'admin', now(), 'admin', now(), null);
|
||||||
insert into sys_oss_config values (3, 'aliyun', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi', '', 'oss-cn-beijing.aliyuncs.com', '','N', '', '1', '', 'admin', now(), 'admin', now(), null);
|
insert into sys_oss_config values (3, 'aliyun', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi', '', 'oss-cn-beijing.aliyuncs.com', '','N', '', '1', '1', '', 'admin', now(), 'admin', now(), null);
|
||||||
insert into sys_oss_config values (4, 'qcloud', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-1250000000', '', 'cos.ap-beijing.myqcloud.com', '','N', 'ap-beijing', '1', '', 'admin', now(), 'admin', now(), null);
|
insert into sys_oss_config values (4, 'qcloud', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-1250000000', '', 'cos.ap-beijing.myqcloud.com', '','N', 'ap-beijing', '1', '1', '', 'admin', now(), 'admin', now(), null);
|
||||||
insert into sys_oss_config values (5, 'image', 'ruoyi', 'ruoyi123', 'ruoyi', 'image', '127.0.0.1:9000', '','N', '', '1', '', 'admin', now(), 'admin', now(), NULL);
|
insert into sys_oss_config values (5, 'image', 'ruoyi', 'ruoyi123', 'ruoyi', 'image', '127.0.0.1:9000', '','N', '', '1', '1', '', 'admin', now(), 'admin', now(), NULL);
|
||||||
|
|
||||||
-- 字符串自动转时间 避免框架时间查询报错问题
|
-- 字符串自动转时间 避免框架时间查询报错问题
|
||||||
create or replace function cast_varchar_to_timestamp(varchar) returns timestamptz as $$
|
create or replace function cast_varchar_to_timestamp(varchar) returns timestamptz as $$
|
||||||
|
@ -2200,6 +2200,7 @@ CREATE TABLE [sys_oss_config]
|
|||||||
[domain] nvarchar(255) DEFAULT '' NULL,
|
[domain] nvarchar(255) DEFAULT '' NULL,
|
||||||
[is_https] nchar(1) DEFAULT ('N') NULL,
|
[is_https] nchar(1) DEFAULT ('N') NULL,
|
||||||
[region] nvarchar(255) DEFAULT '' NULL,
|
[region] nvarchar(255) DEFAULT '' NULL,
|
||||||
|
[access_policy] nchar(1) DEFAULT ('1') NOT NULL,
|
||||||
[status] nchar(1) DEFAULT ('1') NULL,
|
[status] nchar(1) DEFAULT ('1') NULL,
|
||||||
[ext1] nvarchar(255) DEFAULT '' NULL,
|
[ext1] nvarchar(255) DEFAULT '' NULL,
|
||||||
[create_by] nvarchar(64) DEFAULT '' NULL,
|
[create_by] nvarchar(64) DEFAULT '' NULL,
|
||||||
@ -2274,6 +2275,12 @@ EXEC sp_addextendedproperty
|
|||||||
'TABLE', N'sys_oss_config',
|
'TABLE', N'sys_oss_config',
|
||||||
'COLUMN', N'region'
|
'COLUMN', N'region'
|
||||||
GO
|
GO
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'桶权限类型(0=private 1=public 2=custom)',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_oss_config',
|
||||||
|
'COLUMN', N'access_policy'
|
||||||
|
GO
|
||||||
EXEC sp_addextendedproperty
|
EXEC sp_addextendedproperty
|
||||||
'MS_Description', N'状态(0=正常,1=停用)',
|
'MS_Description', N'状态(0=正常,1=停用)',
|
||||||
'SCHEMA', N'dbo',
|
'SCHEMA', N'dbo',
|
||||||
@ -2322,13 +2329,13 @@ EXEC sp_addextendedproperty
|
|||||||
'TABLE', N'sys_oss_config'
|
'TABLE', N'sys_oss_config'
|
||||||
GO
|
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'1', N'minio', N'ruoyi', N'ruoyi123', N'ruoyi', N'', N'127.0.0.1:9000', N'',N'N', N'', N'0', N'', N'admin', getdate(), N'admin', getdate(), NULL)
|
INSERT INTO [sys_oss_config] ([oss_config_id], [config_key], [access_key], [secret_key], [bucket_name], [prefix], [endpoint], [domain], [is_https], [region], [access_policy], [status], [ext1], [create_by], [create_time], [update_by], [update_time], [remark]) VALUES (N'1', N'minio', N'ruoyi', N'ruoyi123', N'ruoyi', N'', N'127.0.0.1:9000', N'',N'N', N'', N'1', N'0', N'', N'admin', getdate(), N'admin', getdate(), NULL)
|
||||||
GO
|
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'2', N'qiniu', N'XXXXXXXXXXXXXXXX', N'XXXXXXXXXXXXXXX', N'ruoyi', N'', N's3-cn-north-1.qiniucs.com', N'',N'N', N'', N'1', N'', N'admin', getdate(), N'admin', getdate(), NULL)
|
INSERT INTO [sys_oss_config] ([oss_config_id], [config_key], [access_key], [secret_key], [bucket_name], [prefix], [endpoint], [domain], [is_https], [region], [access_policy], [status], [ext1], [create_by], [create_time], [update_by], [update_time], [remark]) VALUES (N'2', N'qiniu', N'XXXXXXXXXXXXXXXX', N'XXXXXXXXXXXXXXX', N'ruoyi', N'', N's3-cn-north-1.qiniucs.com', N'',N'N', N'', N'1', N'1', N'', N'admin', getdate(), N'admin', getdate(), NULL)
|
||||||
GO
|
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'3', N'aliyun', N'XXXXXXXXXXXXXXX', N'XXXXXXXXXXXXXXX', N'ruoyi', N'', N'oss-cn-beijing.aliyuncs.com', N'',N'N', N'', N'1', N'', N'admin', getdate(), N'admin', getdate(), NULL)
|
INSERT INTO [sys_oss_config] ([oss_config_id], [config_key], [access_key], [secret_key], [bucket_name], [prefix], [endpoint], [domain], [is_https], [region], [access_policy], [status], [ext1], [create_by], [create_time], [update_by], [update_time], [remark]) VALUES (N'3', N'aliyun', N'XXXXXXXXXXXXXXX', N'XXXXXXXXXXXXXXX', N'ruoyi', N'', N'oss-cn-beijing.aliyuncs.com', N'',N'N', N'', N'1', N'1', N'', N'admin', getdate(), N'admin', getdate(), NULL)
|
||||||
GO
|
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'4', N'qcloud', N'XXXXXXXXXXXXXXX', N'XXXXXXXXXXXXXXX', N'ruoyi-1250000000', N'', N'cos.ap-beijing.myqcloud.com', N'',N'N', N'ap-beijing', N'1', N'', N'admin', getdate(), N'admin', getdate(), NULL)
|
INSERT INTO [sys_oss_config] ([oss_config_id], [config_key], [access_key], [secret_key], [bucket_name], [prefix], [endpoint], [domain], [is_https], [region], [access_policy], [status], [ext1], [create_by], [create_time], [update_by], [update_time], [remark]) VALUES (N'4', N'qcloud', N'XXXXXXXXXXXXXXX', N'XXXXXXXXXXXXXXX', N'ruoyi-1250000000', N'', N'cos.ap-beijing.myqcloud.com', N'',N'N', N'ap-beijing', N'1', N'1', N'', N'admin', getdate(), N'admin', getdate(), NULL)
|
||||||
GO
|
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)
|
INSERT INTO [sys_oss_config] ([oss_config_id], [config_key], [access_key], [secret_key], [bucket_name], [prefix], [endpoint], [domain], [is_https], [region], [access_policy], [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'1', N'', N'admin', getdate(), N'admin', getdate(), NULL)
|
||||||
GO
|
GO
|
||||||
|
Loading…
x
Reference in New Issue
Block a user