数据库结构更新:子表mf_goods添加乐观锁字段
This commit is contained in:
parent
eda8a2d33b
commit
4ee432bfee
1
script/sql/mysql/update.sql
Normal file
1
script/sql/mysql/update.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
---- 升级 from V5.0.0 to V5.1.0:
|
@ -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 '乐观锁';
|
||||||
|
Loading…
Reference in New Issue
Block a user