44 lines
2.5 KiB
SQL
44 lines
2.5 KiB
SQL
----升级 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.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.MapProcessorDemo' WHERE "id"=3;
|
||
UPDATE "public"."pj_job_info" SET "alarm_config"='{"alertThreshold":0,"silenceWindowLen":0,"statisticWindowLen":0}', "log_config"='{"type":1}', "processor_info"='com.ruoyi.job.processors.MapReduceProcessorDemo' WHERE "id"=4;
|
||
|
||
--修改powerjob的库结构的错误oid类型为text类型;
|
||
ALTER TABLE "pj_workflow_info"
|
||
ALTER COLUMN "pedag" TYPE TEXT,
|
||
ALTER COLUMN "pedag" DROP NOT NULL,
|
||
ALTER COLUMN "pedag" DROP DEFAULT;
|
||
COMMENT ON COLUMN "pj_workflow_info"."pedag" IS '';
|
||
ALTER TABLE "pj_workflow_instance_info"
|
||
ALTER COLUMN "dag" TYPE TEXT,
|
||
ALTER COLUMN "dag" DROP NOT NULL,
|
||
ALTER COLUMN "dag" DROP DEFAULT;
|
||
COMMENT ON COLUMN "pj_workflow_instance_info"."dag" IS '';
|
||
ALTER TABLE "pj_workflow_instance_info"
|
||
ALTER COLUMN "result" TYPE TEXT,
|
||
ALTER COLUMN "result" DROP NOT NULL,
|
||
ALTER COLUMN "result" DROP DEFAULT;
|
||
COMMENT ON COLUMN "pj_workflow_instance_info"."result" IS '';
|
||
ALTER TABLE "pj_workflow_instance_info"
|
||
ALTER COLUMN "wf_context" TYPE TEXT,
|
||
ALTER COLUMN "wf_context" DROP NOT NULL,
|
||
ALTER COLUMN "wf_context" DROP DEFAULT;
|
||
COMMENT ON COLUMN "pj_workflow_instance_info"."wf_context" IS '';
|
||
ALTER TABLE "pj_workflow_instance_info"
|
||
ALTER COLUMN "wf_init_params" TYPE TEXT,
|
||
ALTER COLUMN "wf_init_params" DROP NOT NULL,
|
||
ALTER COLUMN "wf_init_params" DROP DEFAULT;
|
||
COMMENT ON COLUMN "pj_workflow_instance_info"."wf_init_params" IS '';
|
||
ALTER TABLE "pj_workflow_node_info"
|
||
ALTER COLUMN "extra" TYPE TEXT,
|
||
ALTER COLUMN "extra" DROP NOT NULL,
|
||
ALTER COLUMN "extra" DROP DEFAULT;
|
||
COMMENT ON COLUMN "pj_workflow_node_info"."extra" IS '';
|
||
ALTER TABLE "pj_workflow_node_info"
|
||
ALTER COLUMN "node_params" TYPE TEXT,
|
||
ALTER COLUMN "node_params" DROP NOT NULL,
|
||
ALTER COLUMN "node_params" DROP DEFAULT;
|
||
COMMENT ON COLUMN "pj_workflow_node_info"."node_params" IS '';
|