mirror of
https://github.com/requarks/wiki.git
synced 2026-03-02 22:57:36 -05:00
Error while importing content from Wiki.js 1.x.x or editing pages with long content #942
Labels
No labels
BETA
BETA
accessibility
backlog
bug
can't replicate
contrib-easy
contrib-hard
contrib-medium
deferred
documentation
duplicate
duplicate
editors
enhancement
invalid
localization
migrate
ui
under review
v3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wiki#942
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SConstantinou on GitHub (Dec 9, 2019).
Originally assigned to: @NGPixel on GitHub.
Describe the bug
Wiki.js 2.0.12 with DB mysql
table pageHistory column content is of type text
this causes problems when importing from Wiki.js 1.x or when using the "Import Everything" action under storage. For most entries in the table we get warnings like: "Data too long for column 'content' at row 1". The behaviour is the same when editing a pages and trying to add long content.
To Reproduce
Import pages with long content (over 64KB) especially entered all at once.
Expected behavior
Page should be updated normally without error. LONGTEXT should be used in mysql instead of text.
Screenshots
Host Info (please complete the following information):
Additional context
nsert into
pageHistory(action,authorId,content,contentType,createdAt,description,editorKey,hash,isPrivate,isPublished,localeCode,pageId,path,publishEndDate,publishStartDate,title) values ('updated', 1,.......
Data too long for column 'content' at row 1"