Skip to content

Commit e1362e2

Browse files
fix: 🐛 调整 mysql markdown content 字段类型,解决文本超长bug
1 parent c10ec97 commit e1362e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/mysql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const (
2828
"CREATE TABLE IF NOT EXISTS `markdown` (" +
2929
" `id` INT UNSIGNED NOT NULL AUTO_INCREMENT," +
3030
" `key` VARCHAR(255) NOT NULL, " +
31-
" `content` VARCHAR(255) NOT NULL," +
31+
" `content` TEXT NOT NULL," +
3232
" `create_time` DATETIME(3) NOT NULL," +
3333
" PRIMARY KEY (`id`), " +
3434
" UNIQUE KEY `key` (`key`)" +

0 commit comments

Comments
 (0)