mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-31 03:39:21 +01:00
fix(mysql): increase max media size restricted from 16kb to 4gb (#3839)
This commit is contained in:
1
packages/db/migrations/mysql/0034_increase-blob-size.sql
Normal file
1
packages/db/migrations/mysql/0034_increase-blob-size.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE `media` MODIFY COLUMN `content` LONGBLOB NOT NULL;
|
||||
2093
packages/db/migrations/mysql/meta/0034_snapshot.json
Normal file
2093
packages/db/migrations/mysql/meta/0034_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -239,6 +239,13 @@
|
||||
"when": 1750013953833,
|
||||
"tag": "0033_add_cron_job_configuration",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 34,
|
||||
"version": "5",
|
||||
"when": 1754929897145,
|
||||
"tag": "0034_increase-blob-size",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ import type {
|
||||
|
||||
const customBlob = customType<{ data: Buffer }>({
|
||||
dataType() {
|
||||
return "BLOB";
|
||||
return "LONGBLOB"; // Has max size of 4GB
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user