Unverified Commit d25f3553 authored by Chris Dzombak's avatar Chris Dzombak Committed by GitHub

chore: allow storing resource references >256 chars long in mysql (#4408)

fix: allow storing resource references >256 chars long in mysql
parent 04d7ba48
-- https://github.com/usememos/memos/issues/4322
ALTER TABLE `resource` MODIFY `reference` TEXT NOT NULL DEFAULT ('');
...@@ -77,7 +77,7 @@ CREATE TABLE `resource` ( ...@@ -77,7 +77,7 @@ CREATE TABLE `resource` (
`size` INT NOT NULL DEFAULT '0', `size` INT NOT NULL DEFAULT '0',
`memo_id` INT DEFAULT NULL, `memo_id` INT DEFAULT NULL,
`storage_type` VARCHAR(256) NOT NULL DEFAULT '', `storage_type` VARCHAR(256) NOT NULL DEFAULT '',
`reference` VARCHAR(256) NOT NULL DEFAULT '', `reference` TEXT NOT NULL DEFAULT (''),
`payload` TEXT NOT NULL `payload` TEXT NOT NULL
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment