Repository navigation
fix(schema): auto-check missing repo feature table, default capabilities off - #58
Open
servicememeai wants to merge 2 commits into
Open
servicememeai wants to merge 2 commits into
servicememeai wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
小范围修复 CloudFile V2 数据表说明与
cf_repo_feature升级兼容,升级时 Checkout / Protection 默认均不启用,不从历史环境变量或seafile.conf的库 ID 列表自动启用。变更
cf_repo_feature、cf_dir_acl、cf_sso_group_map、cf_edit_guard、cf_audit_event、cf_file_protection;cf_library_storage属历史登记表,完成受控迁移后归档为retired_library_storage_v2。CERepoStorageId是存储路由事实源。cf_repo_feature且其余五表精确匹配的情况,在已有共享 Schema 锁内再次检查并仅使用 Server 正式 DDL 创建空表。若已有保护文件或活动 Guard、结构漂移、旧表、其他缺表,拒绝自动升级。已是完整六表时保持只读检查;并发实例先完成补表时幂等通过。tools/migrate/repo-features.py不再根据CF_CHECKOUT_REPOS、CF_PROTECTION_REPOS或旧配置列表插入启用记录;保留已经显式存在的 feature 行。既存保护记录或活动租约可能因能力关闭而失效时,提前拒绝迁移。安全边界
不自动迁移历史
cf_library_storage路由、清空 Guard/保护记录或修改运行中数据库。 该布局仍须停写后使用既有离线迁移工具检查与执行。未修改 Server 原生读写与文件提交逻辑。验证
关联文档 PR:Hub 与 Server 的现行六表开发规范独立同步。