29 lines
1.1 KiB
SQL
29 lines
1.1 KiB
SQL
---- 升级 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 '';
|
||
|
||
-- 添加乐观锁字段
|
||
ALTER TABLE "mf_goods" ADD "version" INTEGER NULL DEFAULT 0;
|
||
COMMENT ON COLUMN "mf_goods"."version" IS '乐观锁';
|