fix(数据库脚本): 修复数据库脚本文件 v0.6.0 的错误问题
This commit is contained in:
@@ -814,7 +814,7 @@ create table `wf_deploy_form` (
|
||||
node_key varchar(64) default '' comment '节点Key',
|
||||
node_name varchar(255) default '' comment '节点名称',
|
||||
content longtext default null comment '表单内容',
|
||||
primary key (deploy_id, form_key)
|
||||
primary key (deploy_id, form_key, node_key)
|
||||
) engine = innodb comment = '流程实例关联表单';
|
||||
|
||||
-- ----------------------------
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
alter table sys_oss_config add column domain varchar(255) null default '' COMMENT '自定义域名';
|
||||
|
||||
update sys_oss_config set endpoint = '127.0.0.1:9000' where oss_config_id = 1;
|
||||
update sys_oss_config set endpoint = 's3-cn-north-1.qiniucs.com', region = '' where oss_config_id = 2;
|
||||
update sys_oss_config set endpoint = 'oss-cn-beijing.aliyuncs.com' where oss_config_id = 3;
|
||||
update sys_oss_config set endpoint = 'cos.ap-beijing.myqcloud.com' where oss_config_id = 4;
|
||||
|
||||
insert into sys_oss_config values (5, 'image', 'ruoyi', 'ruoyi123', 'ruoyi', 'image', '127.0.0.1:9000', 'N', '', '1', '', 'admin', sysdate(), 'admin', sysdate(), NULL, '');
|
||||
|
||||
alter table gen_table_column modify column table_id bigint(0) null default null COMMENT '归属表编号';
|
||||
|
||||
alter table sys_notice modify column notice_id bigint(0) not null COMMENT '公告ID';
|
||||
|
||||
alter table sys_config modify column config_id bigint(0) not null COMMENT '参数主键';
|
||||
1
script/sql/mysql/update/update_v0.5.x~v0.6.0.txt
Normal file
1
script/sql/mysql/update/update_v0.5.x~v0.6.0.txt
Normal file
@@ -0,0 +1 @@
|
||||
由于 0.6.x 版本做了不兼容更新,在此不提供由 0.6.0 前版本升级的SQL脚本。
|
||||
@@ -1081,7 +1081,7 @@ create table wf_deploy_form (
|
||||
content nclob default null,
|
||||
);
|
||||
|
||||
alter table wf_deploy_form add constraint pk_wf_deploy_form primary key (deploy_id, form_key);
|
||||
alter table wf_deploy_form add constraint pk_wf_deploy_form primary key (deploy_id, form_key, node_key);
|
||||
|
||||
comment on table wf_deploy_form is '流程实例关联表单';
|
||||
comment on column wf_deploy_form.deploy_id is '流程实例主键';
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
ALTER TABLE "SYS_OSS_CONFIG" ADD ("DOMAIN" VARCHAR2(255));
|
||||
|
||||
COMMENT ON COLUMN "SYS_OSS_CONFIG"."DOMAIN" IS '自定义域名';
|
||||
|
||||
update sys_oss_config set endpoint = '127.0.0.1:9000' where oss_config_id = 1;
|
||||
update sys_oss_config set endpoint = 's3-cn-north-1.qiniucs.com', region = '' where oss_config_id = 2;
|
||||
update sys_oss_config set endpoint = 'oss-cn-beijing.aliyuncs.com' where oss_config_id = 3;
|
||||
update sys_oss_config set endpoint = 'cos.ap-beijing.myqcloud.com' where oss_config_id = 4;
|
||||
|
||||
insert into sys_oss_config values (5, 'image', 'ruoyi', 'ruoyi123', 'ruoyi', 'image', '127.0.0.1:9000', 'N', '', '1', '', NULL, 'admin', sysdate, 'admin', sysdate, '');
|
||||
|
||||
ALTER TABLE "GEN_TABLE_COLUMN" MODIFY ("TABLE_ID" NUMBER(20,0));
|
||||
1
script/sql/oracle/update/update_v0.5.x~v0.6.0.txt
Normal file
1
script/sql/oracle/update/update_v0.5.x~v0.6.0.txt
Normal file
@@ -0,0 +1 @@
|
||||
由于 0.6.x 版本做了不兼容更新,在此不提供由 0.6.0 前版本升级的SQL脚本。
|
||||
@@ -1092,7 +1092,7 @@ create table wf_deploy_form
|
||||
node_key varchar(64) default ''::varchar,
|
||||
node_name varchar(255) default ''::varchar,
|
||||
content text,
|
||||
constraint wf_deploy_form_pk primary key (deploy_id, form_key)
|
||||
constraint wf_deploy_form_pk primary key (deploy_id, form_key, node_key)
|
||||
);
|
||||
|
||||
comment on table wf_deploy_form is '流程实例关联表单';
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
ALTER TABLE "sys_oss_config" ADD COLUMN "domain" varchar(255);
|
||||
|
||||
COMMENT ON COLUMN "sys_oss_config"."domain" IS '自定义域名';
|
||||
|
||||
update sys_oss_config set endpoint = '127.0.0.1:9000' where oss_config_id = 1;
|
||||
update sys_oss_config set endpoint = 's3-cn-north-1.qiniucs.com', region = '' where oss_config_id = 2;
|
||||
update sys_oss_config set endpoint = 'oss-cn-beijing.aliyuncs.com' where oss_config_id = 3;
|
||||
update sys_oss_config set endpoint = 'cos.ap-beijing.myqcloud.com' where oss_config_id = 4;
|
||||
|
||||
insert into sys_oss_config values (5, 'image', 'ruoyi', 'ruoyi123', 'ruoyi', 'image', '127.0.0.1:9000', 'N', '', '1', '', 'admin', now(), 'admin', now(), NULL, '');
|
||||
1
script/sql/postgres/update/update_v0.5.x~v0.6.0.txt
Normal file
1
script/sql/postgres/update/update_v0.5.x~v0.6.0.txt
Normal file
@@ -0,0 +1 @@
|
||||
由于 0.6.x 版本做了不兼容更新,在此不提供由 0.6.0 前版本升级的SQL脚本。
|
||||
@@ -2657,7 +2657,7 @@ CREATE TABLE [wf_deploy_form]
|
||||
[node_key] nvarchar(64) DEFAULT '' NULL,
|
||||
[node_name] nvarchar(64) DEFAULT '' NULL,
|
||||
[content] nvarchar(max) NULL,
|
||||
CONSTRAINT [PK__wf_deploy_form] PRIMARY KEY CLUSTERED ([deploy_id], [form_key])
|
||||
CONSTRAINT [PK__wf_deploy_form] PRIMARY KEY CLUSTERED ([deploy_id], [form_key], [node_key])
|
||||
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
|
||||
ON [PRIMARY]
|
||||
)
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
ALTER TABLE [sys_oss_config] ADD [domain] nvarchar(255) DEFAULT '' NULL
|
||||
GO
|
||||
|
||||
EXEC sp_addextendedproperty
|
||||
'MS_Description', N'自定义域名',
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_oss_config',
|
||||
'COLUMN', N'domain'
|
||||
GO
|
||||
|
||||
UPDATE [sys_oss_config] SET [access_key] = N'ruoyi', [secret_key] = N'ruoyi123', [endpoint] = N'127.0.0.1:9000' WHERE [oss_config_id] = 1
|
||||
GO
|
||||
|
||||
UPDATE [sys_oss_config] SET [endpoint] = N's3-cn-north-1.qiniucs.com' WHERE [oss_config_id] = 2
|
||||
GO
|
||||
|
||||
UPDATE [sys_oss_config] SET [endpoint] = N'oss-cn-beijing.aliyuncs.com' WHERE [oss_config_id] = 3
|
||||
GO
|
||||
|
||||
UPDATE [sys_oss_config] SET [endpoint] = N'cos.ap-beijing.myqcloud.com' WHERE [oss_config_id] = 4
|
||||
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)
|
||||
GO
|
||||
|
||||
ALTER TABLE [gen_table_column] ALTER COLUMN [table_id] bigint NULL
|
||||
GO
|
||||
1
script/sql/sqlserver/update/update_v0.5.x~v0.6.0.txt
Normal file
1
script/sql/sqlserver/update/update_v0.5.x~v0.6.0.txt
Normal file
@@ -0,0 +1 @@
|
||||
由于 0.6.x 版本做了不兼容更新,在此不提供由 0.6.0 前版本升级的SQL脚本。
|
||||
Reference in New Issue
Block a user