parent
037837b551
commit
0e4a111f81
1714 changed files with 20803 additions and 11751 deletions
14
packages/backend/src/misc/hard-limits.ts
Normal file
14
packages/backend/src/misc/hard-limits.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
// If you change DB_* values, you must also change the DB schema.
|
||||
|
||||
/**
|
||||
* Maximum note text length that can be stored in DB.
|
||||
* Surrogate pairs count as one
|
||||
*/
|
||||
export const DB_MAX_NOTE_TEXT_LENGTH = 8192;
|
||||
|
||||
/**
|
||||
* Maximum image description length that can be stored in DB.
|
||||
* Surrogate pairs count as one
|
||||
*/
|
||||
export const DB_MAX_IMAGE_COMMENT_LENGTH = 512;
|
||||
Loading…
Add table
Add a link
Reference in a new issue