bf2af0ae96
The attachment manager introduced in the previous patch is now properly localised. Repurposed AttachmentStore.CountInTopic as a more general CountIn method. Added an & entity in attachment URLs so that the characters don't get mutated into something weird. Tried to make the linebreaks a little glitchy in the inline editor, we have a better solution in a mind soon! Fixed a bug where replies used .ContentHTML instead of .Content which led to a lot of HTML getting in the way of reply edits. Fixed a bug where reply attachments used the topicID rather than the replyID for their originID entries. Fixed a bug where the topic attachment counts weren't getting incremented. Added the topic.select_button_test, topic.copy_button_test and topic.upload_button_test phrases. Added the attachCount column to the replies table. This commit requires you to run the patcher / updater.
18 lines
617 B
SQL
18 lines
617 B
SQL
CREATE TABLE `replies` (
|
|
`rid` int not null AUTO_INCREMENT,
|
|
`tid` int not null,
|
|
`content` text not null,
|
|
`parsed_content` text not null,
|
|
`createdAt` datetime not null,
|
|
`createdBy` int not null,
|
|
`lastEdit` int DEFAULT 0 not null,
|
|
`lastEditBy` int DEFAULT 0 not null,
|
|
`lastUpdated` datetime not null,
|
|
`ipaddress` varchar(200) DEFAULT '0.0.0.0.0' not null,
|
|
`likeCount` int DEFAULT 0 not null,
|
|
`attachCount` int DEFAULT 0 not null,
|
|
`words` int DEFAULT 1 not null,
|
|
`actionType` varchar(20) DEFAULT '' not null,
|
|
`poll` int DEFAULT 0 not null,
|
|
primary key(`rid`)
|
|
) CHARSET=utf8mb4 COLLATE utf8mb4_general_ci; |