迁移:将DB变更记录SQL文件移动到sql目录下
This commit is contained in:
11
sql/迁移记录-DB变更记录/add_organization_fields.sql
Normal file
11
sql/迁移记录-DB变更记录/add_organization_fields.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- 向adm_organization表添加缺失字段的SQL脚本
|
||||
|
||||
-- 添加字段注释
|
||||
COMMENT ON COLUMN "adm_organization"."register_flag" IS '挂号标志';
|
||||
COMMENT ON COLUMN "adm_organization"."location" IS '科室位置';
|
||||
COMMENT ON COLUMN "adm_organization"."intro" IS '科室简介';
|
||||
COMMENT ON COLUMN "adm_organization"."remark" IS '备注';
|
||||
|
||||
-- 设置register_flag默认值为0(不允许挂号)
|
||||
ALTER TABLE "adm_organization"
|
||||
ALTER COLUMN "register_flag" SET DEFAULT 0;
|
||||
Reference in New Issue
Block a user