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

25 lines
939 B
MySQL
Raw Normal View History

---- 升级 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 '';