Repository navigation
fix: add releation edit - #157
Merged
Merged
Conversation
|
Thank you for your contribution! We will review your request as soon as possible. Please review the code yourself using ponytail https://github.com/DietrichGebert/ponytail. |
…nt into hotfix/releation_edit
# Conflicts: # data-agent-backend/src/main/java/io/github/malonetalk/mapper/ColumnSemanticInfoMapper.java # data-agent-backend/src/main/java/io/github/malonetalk/mapper/TableInfoMapper.java # data-agent-backend/src/main/java/io/github/malonetalk/service/semantic/relation/RelationSemanticServiceImpl.java
…nt into hotfix/releation_edit
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.
本地修改涉及的范围:
语义关联改用表主键。 列记录通过 table_id、逻辑关系通过源表和目标表 ID 关联 table_info;后端查询、同步和关系工作区也相应改为按 ID 处理。
保留不同类型的关系。 Agent 语义提示词不再仅按两端表和列去重;同一组端点配置的不同关系类型可以同时保留。前端关系工作区改用关系 ID 标识每条关系。
合并旧库迁移。 现在只保留 migration_primary_key_relations.sql:先检查重复记录和无法匹配的引用,再迁移 ID、索引与外键,并补齐旧库兼容字段。各结构步骤按现状判断,便于失败后修复并重跑。入门、配置和语义层文档已统一为执行这一份脚本。
明确物理缺失表的重置后果。 前端提示重置时会删除该表的语义记录及相关逻辑关系。