fix: update workspace_files path column to support larger sizes #288
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.
变更描述
修复了workspace_files表中path字段长度限制的问题。当用户尝试创建或保存路径长度超过255个字符的文件时,系统会报错"pq: value too long for type character varying (255)"。此PR将path字段的数据类型从VARCHAR(255)更改为TEXT,以支持更长的文件路径。
变更类型
影响范围
数据库表结构:workspace_files表的path字段从VARCHAR(255)更改为TEXT类型
后端代码:修改了Ent schema定义
数据库迁移:新增了版本18的迁移脚本
测试验证
创建了数据库迁移文件并成功执行,将workspace_files表的path字段从VARCHAR(255)更改为TEXT类型
验证了数据库版本已成功更新到18
相关问题
关闭 #