数据库结构更新:子表mf_goods添加乐观锁字段

This commit is contained in:
dataprince 2024-01-25 11:41:04 +08:00
parent eda8a2d33b
commit 4ee432bfee
4 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1 @@
---- 升级 from V5.0.0 to V5.1.0:

View File

@ -22,3 +22,7 @@ ALTER COLUMN "job_params" TYPE TEXT,
ALTER COLUMN "job_params" DROP NOT NULL, ALTER COLUMN "job_params" DROP NOT NULL,
ALTER COLUMN "job_params" DROP DEFAULT; ALTER COLUMN "job_params" DROP DEFAULT;
COMMENT ON COLUMN "pj_job_info"."job_params" IS ''; 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 '乐观锁';