<fix>[zdfs]: add auth token schema column#4495
Open
zstack-robot-2 wants to merge 1 commit into
Open
Conversation
Add the ZdfsVO.authToken upgrade column required by the ping config token flow. Jira: http://jira.zstack.io/browse/ZSTAC-86638 Test: not run, schema-only change Change-Id: I636378e244b458d8e5063ebc496820739a546087
|
Warning
|
| Layer / File(s) | Summary |
|---|---|
新增authToken列迁移 conf/db/upgrade/V5.5.28__schema.sql |
通过 ADD_COLUMN 调用为 ZdfsVO 表新增 authToken 列(varchar(255)),默认值设为 NULL。 |
Estimated code review effort: 1 (Trivial) | ~2 minutes
Poem
一列新增小小事,
authToken 悄悄落地,
数据库里加把锁,
兔子蹦跳来贺喜 🐇
升级脚本又添一笔!
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name | Status | Explanation |
|---|---|---|
| Title check | ✅ Passed | 标题准确概括了为 ZDFS 新增 auth token 架构列这一主要变更。 |
| Description check | ✅ Passed | 描述与变更一致,说明了新增 ZdfsVO.authToken 列、兼容重复执行及仅为 schema 变更。 |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch
sync/xinhao.huang/fix/ZSTAC-86638-zdfs-auth-schema
Comment @coderabbitai help to get the list of available commands.
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.
问题
ZDFS token 修复在
ZdfsVO上新增authToken字段,5.5.28 现有环境的ZdfsVO表没有对应列,直接替换 premium jar 会导致数据库字段缺失。修复
conf/db/upgrade/V5.5.28__schema.sql中增加ZdfsVO.authToken升级列。CALL ADD_COLUMN,兼容已有环境和重复执行场景。验证
sync from gitlab !10456