Skip to content

[Debug] 添加数据库表结构调试日志 - 打印 relations 表实际 schema#164

Merged
hxcan merged 1 commit into
masterfrom
debug/database-migration-logging
May 20, 2026
Merged

[Debug] 添加数据库表结构调试日志 - 打印 relations 表实际 schema#164
hxcan merged 1 commit into
masterfrom
debug/database-migration-logging

Conversation

@sisterfuture

Copy link
Copy Markdown
Collaborator

修改内容

在 MIGRATION_5_6 和 MIGRATION_6_7 中添加调试日志,打印出 relations 表的实际结构:

  1. 创建表后打印 PRAGMA table_info
  2. 迁移完成后打印最终 schema

技术细节

  • 使用 LogUtils.d() 记录调试信息
  • 执行 PRAGMA table_info(relations) 获取表结构
  • 记录每个字段的 name, type, notnull, dflt_value, pk

关联任务

  • #791551456664 - [Feature] 支持 /issues/{id}/relations.json 路径

## 修改内容
在 MIGRATION_5_6 和 MIGRATION_6_7 中添加调试日志,打印出 relations 表的实际结构:
1. 创建表后打印 PRAGMA table_info
2. 迁移完成后打印最终 schema

## 技术细节
- 使用 LogUtils.d() 记录调试信息
- 执行 PRAGMA table_info(relations) 获取表结构
- 记录每个字段的 name, type, notnull, dflt_value, pk

## 关联任务
- #791551456664 - [Feature] 支持 /issues/{id}/relations.json 路径
@hxcan hxcan merged commit 16fd323 into master May 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants