chore:合并数据库变更
This commit is contained in:
1 parent
4ddc01dbd5
commit
4593478b02
2 files changed
+7
-9
No files matched your search
@@ -1,9 +0,0 @@
|
||||
-- +goose Up
|
||||
-- 模型分组增加"默认分组"标记,标记为默认的分组在新租户注册时自动关联
|
||||
|
||||
ALTER TABLE mdl_model_groups ADD COLUMN is_default BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
COMMENT ON COLUMN mdl_model_groups.is_default IS '是否为新租户默认模型组,注册时自动关联';
|
||||
|
||||
-- +goose Down
|
||||
|
||||
ALTER TABLE mdl_model_groups DROP COLUMN IF EXISTS is_default;
|
||||
@@ -1,5 +1,10 @@
|
||||
-- +goose Up
|
||||
|
||||
-- 模型分组增加"默认分组"标记,标记为默认的分组在新租户注册时自动关联
|
||||
|
||||
ALTER TABLE mdl_model_groups ADD COLUMN is_default BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
COMMENT ON COLUMN mdl_model_groups.is_default IS '是否为新租户默认模型组,注册时自动关联';
|
||||
|
||||
-- ============================================================
|
||||
-- sys_agreements — 用户协议/政策版本管理
|
||||
-- ============================================================
|
||||
@@ -77,3 +82,5 @@ COMMENT ON COLUMN sys_agreement_acceptances.created_at IS '接受时间';
|
||||
-- +goose Down
|
||||
DROP TABLE IF EXISTS sys_agreement_acceptances;
|
||||
DROP TABLE IF EXISTS sys_agreements;
|
||||
|
||||
ALTER TABLE mdl_model_groups DROP COLUMN IF EXISTS is_default;
|
||||
Reference in new issue
Block a user