mirror of
https://github.com/usememos/memos.git
synced 2025-03-05 01:53:14 +08:00
chore: allow storing resource references >256 chars long in mysql (#4408)
fix: allow storing resource references >256 chars long in mysql
This commit is contained in:
parent
04d7ba48e5
commit
d25f355392
2 changed files with 4 additions and 1 deletions
3
store/migration/mysql/0.25/00__s3_reference_length.sql
Normal file
3
store/migration/mysql/0.25/00__s3_reference_length.sql
Normal file
|
@ -0,0 +1,3 @@
|
|||
-- https://github.com/usememos/memos/issues/4322
|
||||
|
||||
ALTER TABLE `resource` MODIFY `reference` TEXT NOT NULL DEFAULT ('');
|
|
@ -77,7 +77,7 @@ CREATE TABLE `resource` (
|
|||
`size` INT NOT NULL DEFAULT '0',
|
||||
`memo_id` INT DEFAULT NULL,
|
||||
`storage_type` VARCHAR(256) NOT NULL DEFAULT '',
|
||||
`reference` VARCHAR(256) NOT NULL DEFAULT '',
|
||||
`reference` TEXT NOT NULL DEFAULT (''),
|
||||
`payload` TEXT NOT NULL
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue