mirror of https://github.com/halo-dev/halo
Fix the problem that MySQL complains "Data too long for column 'data' at row 1" (#2833)
#### What type of PR is this? /kind improvement /area core /milestone 2.0.1 #### What this PR does / why we need it: See https://github.com/halo-dev/halo/issues/2832 and https://github.com/halo-dev/halo/issues/2832#issuecomment-1336616901 for more. For a workaround, please refer to: - https://github.com/halo-dev/halo/issues/2832#issuecomment-1336610679 But, there are still limitations here: - For MySQL: ~4GB - For PosgreSQL: ~1GB #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/2832 #### Does this PR introduce a user-facing change? ```release-note 修复因文章过长导致无法保存数据的问题 ```pull/2840/head
parent
0072363dee
commit
5980b5b4be
|
@ -1,7 +1,7 @@
|
||||||
create table if not exists extensions
|
create table if not exists extensions
|
||||||
(
|
(
|
||||||
name varchar(255) not null,
|
name varchar(255) not null,
|
||||||
data blob,
|
data longblob,
|
||||||
version bigint,
|
version bigint,
|
||||||
primary key (name)
|
primary key (name)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue