ruoyi-flex/script/sql/postgresql/update.sql

25 lines
939 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---- 升级 from V5.0.0 to V5.1.0:
-- 修正修改PostgreSQL数据库结构由integer修改为text类型
ALTER TABLE "pj_instance_info"
ALTER COLUMN "instance_params" TYPE TEXT,
ALTER COLUMN "instance_params" DROP NOT NULL,
ALTER COLUMN "instance_params" DROP DEFAULT;
COMMENT ON COLUMN "pj_instance_info"."instance_params" IS '';
ALTER TABLE "pj_instance_info"
ALTER COLUMN "job_params" TYPE TEXT,
ALTER COLUMN "job_params" DROP NOT NULL,
ALTER COLUMN "job_params" DROP DEFAULT;
COMMENT ON COLUMN "pj_instance_info"."job_params" IS '';
ALTER TABLE "pj_instance_info"
ALTER COLUMN "result" TYPE TEXT,
ALTER COLUMN "result" DROP NOT NULL,
ALTER COLUMN "result" DROP DEFAULT;
COMMENT ON COLUMN "pj_instance_info"."result" IS '';
ALTER TABLE "pj_job_info"
ALTER COLUMN "job_params" TYPE TEXT,
ALTER COLUMN "job_params" DROP NOT NULL,
ALTER COLUMN "job_params" DROP DEFAULT;
COMMENT ON COLUMN "pj_job_info"."job_params" IS '';