Browse Source

🎉 2.7.0.RELEASE 底层驱动全面升级

test v2.7.0.release
smallchill 4 years ago
parent
commit
17566aa211
  1. 6
      doc/nacos/blade.yaml
  2. 52
      doc/sql/update/mysql-update-2.6.0~2.6.1.sql
  3. 69
      doc/sql/update/oracle-update-2.6.0~2.6.1.sql
  4. 67
      doc/sql/update/postgresql-update-2.6.0~2.6.1.sql
  5. 141
      doc/sql/update/sqlserver-update-2.6.0~2.6.1.sql

6
doc/nacos/blade.yaml

@ -73,9 +73,9 @@ knife4j:
enable: true
#基础认证
basic:
enable: true
username: bladex
password: bladex
enable: false
username: blade
password: blade
#增强配置
setting:
enableSwaggerModels: true

52
doc/sql/update/mysql-update-2.6.0~2.6.1.sql

@ -1,52 +0,0 @@
-- ----------------------------
-- 层级字段重命名
-- ----------------------------
ALTER TABLE `blade_region`
CHANGE COLUMN `level` `region_level` int(2) NULL DEFAULT NULL COMMENT '层级' AFTER `village_name`;
-- ----------------------------
-- 增加用户平台字段
-- ----------------------------
ALTER TABLE `blade_user`
ADD COLUMN `user_type` int(2) NULL COMMENT '用户平台' AFTER `code`;
-- ----------------------------
-- 修改用户平台默认值
-- ----------------------------
UPDATE `blade_user` set user_type = 1 WHERE is_deleted = 0;
-- ----------------------------
-- 创建用户拓展表
-- ----------------------------
CREATE TABLE `blade_user_web` (
`id` bigint(64) NOT NULL COMMENT '主键',
`user_id` bigint(64) NULL DEFAULT 0 COMMENT '用户ID',
`user_ext` varchar(255) NULL COMMENT '用户拓展信息',
PRIMARY KEY (`id`)
) COMMENT = '用户平台拓展表';
CREATE TABLE `blade_user_app` (
`id` bigint(64) NOT NULL COMMENT '主键',
`user_id` bigint(64) NULL DEFAULT 0 COMMENT '用户ID',
`user_ext` varchar(255) NULL COMMENT '用户拓展信息',
PRIMARY KEY (`id`)
) COMMENT = '用户平台拓展表';
CREATE TABLE `blade_user_other` (
`id` bigint(64) NOT NULL COMMENT '主键',
`user_id` bigint(64) NULL DEFAULT 0 COMMENT '用户ID',
`user_ext` varchar(255) NULL COMMENT '用户拓展信息',
PRIMARY KEY (`id`)
) COMMENT = '用户平台拓展表';
-- ----------------------------
-- 增加用户平台字典数据
-- ----------------------------
INSERT INTO `blade_dict`(`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`)
VALUES (1123598814738778200, 0, 'user_type', '-1', '用户平台', 14, NULL, 0, 0);
INSERT INTO `blade_dict`(`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`)
VALUES (1123598814738778201, 1123598814738778200, 'user_type', '1', 'WEB', 1, NULL, 0, 0);
INSERT INTO `blade_dict`(`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`)
VALUES (1123598814738778202, 1123598814738778200, 'user_type', '2', 'APP', 2, NULL, 0, 0);
INSERT INTO `blade_dict`(`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`)
VALUES (1123598814738778203, 1123598814738778200, 'user_type', '3', 'OTHER', 3, NULL, 0, 0);

69
doc/sql/update/oracle-update-2.6.0~2.6.1.sql

@ -1,69 +0,0 @@
-- ----------------------------
-- 层级字段重命名
-- ----------------------------
ALTER TABLE "BLADE_REGION" RENAME COLUMN "LEVEL" TO "REGION_LEVEL";
-- ----------------------------
-- 增加用户平台字段
-- ----------------------------
ALTER TABLE "BLADE_USER"
ADD ("USER_TYPE" NUMBER(6) );
COMMENT ON COLUMN "BLADE_USER"."USER_TYPE" IS '用户平台';
-- ----------------------------
-- 修改用户平台默认值
-- ----------------------------
UPDATE "BLADE_USER" set USER_TYPE = 1 WHERE IS_DELETED = 0;
-- ----------------------------
-- 创建用户拓展表
-- ----------------------------
CREATE TABLE "BLADE_USER_WEB" (
"ID" NUMBER(20) NOT NULL ,
"USER_ID" NUMBER(20) ,
"USER_EXT" VARCHAR2(255) ,
PRIMARY KEY ("ID")
)
;
COMMENT ON COLUMN "BLADE_USER_WEB"."ID" IS '主键';
COMMENT ON COLUMN "BLADE_USER_WEB"."USER_ID" IS '用户ID';
COMMENT ON COLUMN "BLADE_USER_WEB"."USER_EXT" IS '用户拓展信息';
COMMENT ON TABLE "BLADE_USER_WEB" IS '用户平台拓展表';
CREATE TABLE "BLADE_USER_APP" (
"ID" NUMBER(20) NOT NULL ,
"USER_ID" NUMBER(20) ,
"USER_EXT" VARCHAR2(255) ,
PRIMARY KEY ("ID")
)
;
COMMENT ON COLUMN "BLADE_USER_APP"."ID" IS '主键';
COMMENT ON COLUMN "BLADE_USER_APP"."USER_ID" IS '用户ID';
COMMENT ON COLUMN "BLADE_USER_APP"."USER_EXT" IS '用户拓展信息';
COMMENT ON TABLE "BLADE_USER_APP" IS '用户平台拓展表';
CREATE TABLE "BLADE_USER_OTHER" (
"ID" NUMBER(20) NOT NULL ,
"USER_ID" NUMBER(20) ,
"USER_EXT" VARCHAR2(255) ,
PRIMARY KEY ("ID")
)
;
COMMENT ON COLUMN "BLADE_USER_OTHER"."ID" IS '主键';
COMMENT ON COLUMN "BLADE_USER_OTHER"."USER_ID" IS '用户ID';
COMMENT ON COLUMN "BLADE_USER_OTHER"."USER_EXT" IS '用户拓展信息';
COMMENT ON TABLE "BLADE_USER_OTHER" IS '用户平台拓展表';
-- ----------------------------
-- 增加用户平台字典数据
-- ----------------------------
INSERT INTO "BLADE_DICT"("ID", "PARENT_ID", "CODE", "DICT_KEY", "DICT_VALUE", "SORT", "REMARK", "IS_SEALED", "IS_DELETED")
VALUES (1123598814738778200, 0, 'user_type', '-1', '用户平台', 14, NULL, 0, 0);
INSERT INTO "BLADE_DICT"("ID", "PARENT_ID", "CODE", "DICT_KEY", "DICT_VALUE", "SORT", "REMARK", "IS_SEALED", "IS_DELETED")
VALUES (1123598814738778201, 1123598814738778200, 'user_type', '1', 'WEB', 1, NULL, 0, 0);
INSERT INTO "BLADE_DICT"("ID", "PARENT_ID", "CODE", "DICT_KEY", "DICT_VALUE", "SORT", "REMARK", "IS_SEALED", "IS_DELETED")
VALUES (1123598814738778202, 1123598814738778200, 'user_type', '2', 'APP', 2, NULL, 0, 0);
INSERT INTO "BLADE_DICT"("ID", "PARENT_ID", "CODE", "DICT_KEY", "DICT_VALUE", "SORT", "REMARK", "IS_SEALED", "IS_DELETED")
VALUES (1123598814738778203, 1123598814738778200, 'user_type', '3', 'OTHER', 3, NULL, 0, 0);

67
doc/sql/update/postgresql-update-2.6.0~2.6.1.sql

@ -1,67 +0,0 @@
-- ----------------------------
-- 层级字段重命名
-- ----------------------------
ALTER TABLE "blade_region" RENAME COLUMN "level" TO "region_level";
-- ----------------------------
-- 增加用户平台字段
-- ----------------------------
ALTER TABLE "blade_user"
ADD COLUMN "user_type" int2;
COMMENT ON COLUMN "public"."blade_user"."user_type" IS '用户平台';
-- ----------------------------
-- 修改用户平台默认值
-- ----------------------------
UPDATE "blade_user" set user_type = 1 WHERE is_deleted = 0;
-- ----------------------------
-- 创建用户拓展表
-- ----------------------------
CREATE TABLE "blade_user_web" (
"id" int8 NOT NULL,
"user_id" int8,
"user_ext" varchar(255),
PRIMARY KEY ("id")
)
;
COMMENT ON COLUMN "blade_user_web"."id" IS '主键';
COMMENT ON COLUMN "blade_user_web"."user_id" IS '用户ID';
COMMENT ON COLUMN "blade_user_web"."user_ext" IS '用户拓展信息';
COMMENT ON TABLE "blade_user_web" IS '用户平台拓展表';
CREATE TABLE "blade_user_app" (
"id" int8 NOT NULL,
"user_id" int8,
"user_ext" varchar(255),
PRIMARY KEY ("id")
)
;
COMMENT ON COLUMN "blade_user_app"."id" IS '主键';
COMMENT ON COLUMN "blade_user_app"."user_id" IS '用户ID';
COMMENT ON COLUMN "blade_user_app"."user_ext" IS '用户拓展信息';
COMMENT ON TABLE "blade_user_app" IS '用户平台拓展表';
CREATE TABLE "blade_user_other" (
"id" int8 NOT NULL,
"user_id" int8,
"user_ext" varchar(255),
PRIMARY KEY ("id")
)
;
COMMENT ON COLUMN "blade_user_other"."id" IS '主键';
COMMENT ON COLUMN "blade_user_other"."user_id" IS '用户ID';
COMMENT ON COLUMN "blade_user_other"."user_ext" IS '用户拓展信息';
COMMENT ON TABLE "blade_user_other" IS '用户平台拓展表';
-- ----------------------------
-- 增加用户平台字典数据
-- ----------------------------
INSERT INTO "blade_dict"("id", "parent_id", "code", "dict_key", "dict_value", "sort", "remark", "is_sealed", "is_deleted")
VALUES (1123598814738778200, 0, 'user_type', '-1', '用户平台', 14, NULL, 0, 0);
INSERT INTO "blade_dict"("id", "parent_id", "code", "dict_key", "dict_value", "sort", "remark", "is_sealed", "is_deleted")
VALUES (1123598814738778201, 1123598814738778200, 'user_type', '1', 'WEB', 1, NULL, 0, 0);
INSERT INTO "blade_dict"("id", "parent_id", "code", "dict_key", "dict_value", "sort", "remark", "is_sealed", "is_deleted")
VALUES (1123598814738778202, 1123598814738778200, 'user_type', '2', 'APP', 2, NULL, 0, 0);
INSERT INTO "blade_dict"("id", "parent_id", "code", "dict_key", "dict_value", "sort", "remark", "is_sealed", "is_deleted")
VALUES (1123598814738778203, 1123598814738778200, 'user_type', '3', 'OTHER', 3, NULL, 0, 0);

141
doc/sql/update/sqlserver-update-2.6.0~2.6.1.sql

@ -1,141 +0,0 @@
-- ----------------------------
-- 层级字段重命名
-- ----------------------------
EXEC sp_rename '[dbo].[blade_region].[level]', 'region_level', 'COLUMN';
-- ----------------------------
-- 增加用户平台字段
-- ----------------------------
ALTER TABLE [dbo].[blade_user] ADD [user_type] int
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户平台',
'SCHEMA', N'dbo',
'TABLE', N'blade_user',
'COLUMN', N'user_type'
-- ----------------------------
-- 修改用户平台默认值
-- ----------------------------
UPDATE [dbo].[blade_user] set user_type = 1 WHERE is_deleted = 0;
-- ----------------------------
-- 创建用户拓展表
-- ----------------------------
CREATE TABLE [dbo].[blade_user_web] (
[id] bigint NOT NULL,
[user_id] bigint NULL,
[user_ext] varchar(255),
PRIMARY KEY CLUSTERED ([id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
EXEC sp_addextendedproperty
'MS_Description', N'主键',
'SCHEMA', N'dbo',
'TABLE', N'blade_user_web',
'COLUMN', N'id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户ID',
'SCHEMA', N'dbo',
'TABLE', N'blade_user_web',
'COLUMN', N'user_id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户拓展信息',
'SCHEMA', N'dbo',
'TABLE', N'blade_user_web',
'COLUMN', N'user_ext'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户平台拓展表',
'SCHEMA', N'dbo',
'TABLE', N'blade_user_web';
CREATE TABLE [dbo].[blade_user_app] (
[id] bigint NOT NULL,
[user_id] bigint NULL,
[user_ext] varchar(255),
PRIMARY KEY CLUSTERED ([id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
EXEC sp_addextendedproperty
'MS_Description', N'主键',
'SCHEMA', N'dbo',
'TABLE', N'blade_user_app',
'COLUMN', N'id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户ID',
'SCHEMA', N'dbo',
'TABLE', N'blade_user_app',
'COLUMN', N'user_id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户拓展信息',
'SCHEMA', N'dbo',
'TABLE', N'blade_user_app',
'COLUMN', N'user_ext'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户平台拓展表',
'SCHEMA', N'dbo',
'TABLE', N'blade_user_app';
CREATE TABLE [dbo].[blade_user_other] (
[id] bigint NOT NULL,
[user_id] bigint NULL,
[user_ext] varchar(255),
PRIMARY KEY CLUSTERED ([id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
EXEC sp_addextendedproperty
'MS_Description', N'主键',
'SCHEMA', N'dbo',
'TABLE', N'blade_user_other',
'COLUMN', N'id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户ID',
'SCHEMA', N'dbo',
'TABLE', N'blade_user_other',
'COLUMN', N'user_id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户拓展信息',
'SCHEMA', N'dbo',
'TABLE', N'blade_user_other',
'COLUMN', N'user_ext'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户平台拓展表',
'SCHEMA', N'dbo',
'TABLE', N'blade_user_other';
-- ----------------------------
-- 增加用户平台字典数据
-- ----------------------------
INSERT INTO [dbo].[blade_dict]([id], [parent_id], [code], [dict_key], [dict_value], [sort], [remark], [is_sealed], [is_deleted])
VALUES (N'1123598814738778200', N'0', N'user_type', N'-1', N'用户平台', N'14', NULL, N'0', N'0');
INSERT INTO [dbo].[blade_dict]([id], [parent_id], [code], [dict_key], [dict_value], [sort], [remark], [is_sealed], [is_deleted])
VALUES (N'1123598814738778201', N'1123598814738778200', N'user_type', N'1', N'WEB', N'1', NULL, N'0', N'0');
INSERT INTO [dbo].[blade_dict]([id], [parent_id], [code], [dict_key], [dict_value], [sort], [remark], [is_sealed], [is_deleted])
VALUES (N'1123598814738778202', N'1123598814738778200', N'user_type', N'2', N'APP', N'2', NULL, N'0', N'0');
INSERT INTO [dbo].[blade_dict]([id], [parent_id], [code], [dict_key], [dict_value], [sort], [remark], [is_sealed], [is_deleted])
VALUES (N'1123598814738778203', N'1123598814738778200', N'user_type', N'3', N'OTHER', N'3', NULL, N'0', N'0');
Loading…
Cancel
Save