修复相关问题

This commit is contained in:
zhx 2026-05-28 18:58:22 +08:00
parent 283065e41d
commit 38f0a90f48
3 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ CREATE TABLE IF NOT EXISTS room_background_images (
app_code VARCHAR(32) NOT NULL COMMENT '应用编码,用于多租户隔离',
background_id BIGINT NOT NULL AUTO_INCREMENT COMMENT '背景图 ID',
room_id VARCHAR(64) NOT NULL COMMENT '房间 ID',
image_url VARCHAR(1024) NOT NULL COMMENT '背景图 URL',
image_url VARCHAR(256) NOT NULL COMMENT '背景图 URL',
created_by_user_id BIGINT NOT NULL COMMENT '保存背景图的用户 ID',
created_at_ms BIGINT NOT NULL COMMENT '创建时间UTC epoch ms',
updated_at_ms BIGINT NOT NULL COMMENT '更新时间UTC epoch ms',

View File

@ -34,7 +34,7 @@ const (
maxRoomNameRunes = 128
maxRoomAvatarRunes = 512
maxRoomDescriptionRunes = 512
maxRoomBackgroundRunes = 1024
maxRoomBackgroundRunes = 256
)
// roomProfileInput 是创建房间时需要落到 RoomExt 的展示资料集合。

View File

@ -151,7 +151,7 @@ func (r *Repository) Migrate(ctx context.Context) error {
app_code VARCHAR(32) NOT NULL,
background_id BIGINT NOT NULL AUTO_INCREMENT,
room_id VARCHAR(64) NOT NULL,
image_url VARCHAR(1024) NOT NULL,
image_url VARCHAR(256) NOT NULL,
created_by_user_id BIGINT NOT NULL,
created_at_ms BIGINT NOT NULL,
updated_at_ms BIGINT NOT NULL,