迁移:将DB变更记录SQL文件移动到sql目录下

This commit is contained in:
2026-01-13 10:05:32 +08:00
parent cb268fe26d
commit ebd2e8aa75
131 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
-- 添加不能为空且默认值为0的字段
ALTER TABLE doc_record ADD COLUMN print_count INT4 NOT NULL DEFAULT 0;
-- 添加字段备注
COMMENT ON COLUMN doc_record.print_count IS '打印次数';
-- Insert migration record
INSERT INTO __MigrationsHistory (MigrationId, ProductVersion)
VALUES ('202511191103 ALTER TABLE doc_record ADD COLUMN print_count', '1.0.0');