Repository navigation
Conversation
Migration 0174 copies verified definitions that Servers still on the previous release wrote into public.workspace_dependency_definitions into the global template table, then drops the per-team definition and catalog tables. The catalog is rebuilt by the refresher. 0001_init reflects the final state. Must be deployed only after 0173 and after no previous-release Server runs. Refs #1744
2 of 6 tasks
Collaborator
Author
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.
Author
Type
Summary
问题
#1747 把依赖定义和依赖目录移到
templateschema 下的全局表。按团队的旧表public.workspace_dependency_definitions和public.workspace_dependency_catalogs仍然保留,供滚动发布期间仍在运行的上一版本使用。发布窗口内,上一版本取到的新定义只会写进旧表。改动
team_id、last_accessed_at、索引、FORCE RLS 和策略,不恢复数据。0001_init更新为删除旧表后的状态。本 PR 需要在 #1747 部署完成后再合并。
Related Issues
Refs #1744
Validation
go build ./...通过。./internal/db/...、./internal/workspacedeps/...的单元测试和集成测试通过,包括 schema 守卫测试。mise run lint:go通过。Screenshots / Recordings
不涉及界面,只有数据库迁移。验证方式见上方迁移集成测试。
Human QA