misc(database): Use DEFAULT '' for privmsgs_subject (#1786)

* fix(posting): Exception on too long topic title

* Update mysql.sql
This commit is contained in:
Roman Kelesidis 2025-01-30 20:10:47 +03:00 committed by GitHub
commit 387a25870a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1047,7 +1047,7 @@ CREATE TABLE IF NOT EXISTS `bb_privmsgs`
(
`privmsgs_id` MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT,
`privmsgs_type` TINYINT(4) NOT NULL DEFAULT '0',
`privmsgs_subject` VARCHAR(255) NOT NULL DEFAULT '0',
`privmsgs_subject` VARCHAR(255) NOT NULL DEFAULT '',
`privmsgs_from_userid` MEDIUMINT(8) NOT NULL DEFAULT '0',
`privmsgs_to_userid` MEDIUMINT(8) NOT NULL DEFAULT '0',
`privmsgs_date` INT(11) NOT NULL DEFAULT '0',