!6 sql脚本注释规范,避免执行出错

Merge pull request !6 from 齐家/master
This commit is contained in:
数据小王子 2024-05-10 01:19:32 +00:00 committed by Gitee
commit a0957a76c1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
---- 升级 from V5.0.0 to V5.1.0: -- -- 升级 from V5.0.0 to V5.1.0:
-- ---------------------------- -- ----------------------------
-- 第三方平台授权表 -- 第三方平台授权表
@ -58,7 +58,7 @@ UPDATE `sys_role` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `sys_social` SET `tenant_id`=1 WHERE `tenant_id`=0; UPDATE `sys_social` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `sys_user` SET `tenant_id`=1 WHERE `tenant_id`=0; UPDATE `sys_user` SET `tenant_id`=1 WHERE `tenant_id`=0;
---- 升级 from V5.1.0 to V5.2.0: -- -- 升级 from V5.1.0 to V5.2.0:
-- 修改数据库id_token字段宽度 -- 修改数据库id_token字段宽度
ALTER TABLE `sys_social` ALTER TABLE `sys_social`
CHANGE COLUMN `id_token` `id_token` VARCHAR(2000) NULL DEFAULT NULL COMMENT 'id token部分平台可能没有' COLLATE 'utf8mb4_bin' AFTER `token_type`; CHANGE COLUMN `id_token` `id_token` VARCHAR(2000) NULL DEFAULT NULL COMMENT 'id token部分平台可能没有' COLLATE 'utf8mb4_bin' AFTER `token_type`;
@ -73,5 +73,5 @@ insert into sys_menu values('130', 'EasyRetry控制台', '2', '6', 'easyret
ALTER TABLE `mf_product` ADD COLUMN `ancestors` VARCHAR(760) NULL DEFAULT '' COMMENT '祖级列表' AFTER `parent_id`; ALTER TABLE `mf_product` ADD COLUMN `ancestors` VARCHAR(760) NULL DEFAULT '' COMMENT '祖级列表' AFTER `parent_id`;
ALTER TABLE `demo_product` ADD COLUMN `ancestors` VARCHAR(760) NULL DEFAULT '' COMMENT '祖级列表' AFTER `parent_id`; ALTER TABLE `demo_product` ADD COLUMN `ancestors` VARCHAR(760) NULL DEFAULT '' COMMENT '祖级列表' AFTER `parent_id`;
--edit_columns字段 -- 增加edit_columns字段
ALTER TABLE `gen_table` ADD COLUMN `edit_columns` TINYINT NULL DEFAULT 1 AFTER `remark`; ALTER TABLE `gen_table` ADD COLUMN `edit_columns` TINYINT NULL DEFAULT 1 AFTER `remark`;

View File

@ -27,7 +27,7 @@ ALTER TABLE `sys_tenant`
ALTER TABLE `sys_user` ALTER TABLE `sys_user`
CHANGE COLUMN `del_flag` `del_flag` SMALLINT NULL DEFAULT '0' COMMENT '删除标志0代表存在 1代表删除' COLLATE 'utf8mb4_bin' AFTER `status`; CHANGE COLUMN `del_flag` `del_flag` SMALLINT NULL DEFAULT '0' COMMENT '删除标志0代表存在 1代表删除' COLLATE 'utf8mb4_bin' AFTER `status`;
---- 升级 from V4.2.0 to V5.0.0: -- -- 升级 from V4.2.0 to V5.0.0:
-- 修正“任务调度”的“任务管理”错误: -- 修正“任务调度”的“任务管理”错误:
UPDATE `pj_job_info` SET `processor_info`='com.ruoyi.job.processors.StandaloneProcessorDemo' WHERE `id`=1; UPDATE `pj_job_info` SET `processor_info`='com.ruoyi.job.processors.StandaloneProcessorDemo' WHERE `id`=1;
UPDATE `pj_job_info` SET `processor_info`='com.ruoyi.job.processors.BroadcastProcessorDemo' WHERE `id`=2; UPDATE `pj_job_info` SET `processor_info`='com.ruoyi.job.processors.BroadcastProcessorDemo' WHERE `id`=2;

View File

@ -1,4 +1,4 @@
---- 升级 from V5.0.0 to V5.1.0: -- -- 升级 from V5.0.0 to V5.1.0:
-- 修正修改PostgreSQL数据库结构由integer修改为text类型 -- 修正修改PostgreSQL数据库结构由integer修改为text类型
ALTER TABLE "pj_instance_info" ALTER TABLE "pj_instance_info"
@ -116,7 +116,7 @@ UPDATE "public"."sys_role" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."sys_social" SET "tenant_id"=1 WHERE "tenant_id"=0; UPDATE "public"."sys_social" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."sys_user" SET "tenant_id"=1 WHERE "tenant_id"=0; UPDATE "public"."sys_user" SET "tenant_id"=1 WHERE "tenant_id"=0;
---- 升级 from V5.1.0 to V5.2.0: -- -- 升级 from V5.1.0 to V5.2.0:
-- 修改数据库id_token字段宽度 -- 修改数据库id_token字段宽度
ALTER TABLE "sys_social" ALTER TABLE "sys_social"
ALTER COLUMN "id_token" TYPE VARCHAR(2000), ALTER COLUMN "id_token" TYPE VARCHAR(2000),
@ -134,6 +134,6 @@ insert into sys_menu values('130', 'EasyRetry控制台', '2', '6', 'easyret
ALTER TABLE "mf_product" ADD "ancestors" VARCHAR(760) NULL; ALTER TABLE "mf_product" ADD "ancestors" VARCHAR(760) NULL;
COMMENT ON COLUMN "mf_product"."ancestors" IS '祖级列表'; COMMENT ON COLUMN "mf_product"."ancestors" IS '祖级列表';
--edit_columns字段 -- 增加edit_columns字段
ALTER TABLE "gen_table" ADD "edit_columns" SMALLINT NULL DEFAULT '1'; ALTER TABLE "gen_table" ADD "edit_columns" SMALLINT NULL DEFAULT '1';
COMMENT ON COLUMN "gen_table"."edit_columns" IS '编辑列数'; COMMENT ON COLUMN "gen_table"."edit_columns" IS '编辑列数';

View File

@ -1,4 +1,4 @@
---- 升级 from V4.2.0 to V5.0.0: -- -- 升级 from V4.2.0 to V5.0.0:
-- 修正“任务调度”的“任务管理”错误: -- 修正“任务调度”的“任务管理”错误:
UPDATE "public"."pj_job_info" SET "alarm_config"='{"alertThreshold":0,"silenceWindowLen":0,"statisticWindowLen":0}', "log_config"='{"type":1}', "processor_info"='com.ruoyi.job.processors.StandaloneProcessorDemo' WHERE "id"=1; UPDATE "public"."pj_job_info" SET "alarm_config"='{"alertThreshold":0,"silenceWindowLen":0,"statisticWindowLen":0}', "log_config"='{"type":1}', "processor_info"='com.ruoyi.job.processors.StandaloneProcessorDemo' WHERE "id"=1;
UPDATE "public"."pj_job_info" SET "alarm_config"='{"alertThreshold":0,"silenceWindowLen":0,"statisticWindowLen":0}', "log_config"='{"type":1}', "processor_info"='com.ruoyi.job.processors.BroadcastProcessorDemo' WHERE "id"=2; UPDATE "public"."pj_job_info" SET "alarm_config"='{"alertThreshold":0,"silenceWindowLen":0,"statisticWindowLen":0}', "log_config"='{"type":1}', "processor_info"='com.ruoyi.job.processors.BroadcastProcessorDemo' WHERE "id"=2;