Comments/Replies

* add default values to comments table so replying doesn't cause errors
This commit is contained in:
Sarjuuk
2024-07-09 13:30:51 +02:00
parent 460615c112
commit c14d53067b
2 changed files with 6 additions and 3 deletions

View File

@@ -415,8 +415,8 @@ DROP TABLE IF EXISTS `aowow_comments`;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `aowow_comments` (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Comment ID',
`type` smallint unsigned NOT NULL COMMENT 'Type of Page',
`typeId` mediumint NOT NULL COMMENT 'ID Of Page',
`type` smallint unsigned NOT NULL DEFAULT 0 COMMENT 'Type of Page',
`typeId` mediumint NOT NULL DEFAULT 0 COMMENT 'ID Of Page',
`userId` int unsigned DEFAULT NULL COMMENT 'User ID',
`roles` smallint unsigned NOT NULL,
`body` text NOT NULL COMMENT 'Comment text',
@@ -3320,7 +3320,7 @@ UNLOCK TABLES;
LOCK TABLES `aowow_dbversion` WRITE;
/*!40000 ALTER TABLE `aowow_dbversion` DISABLE KEYS */;
INSERT INTO `aowow_dbversion` VALUES (1720455279,0,NULL,NULL);
INSERT INTO `aowow_dbversion` VALUES (1720523765,0,NULL,NULL);
/*!40000 ALTER TABLE `aowow_dbversion` ENABLE KEYS */;
UNLOCK TABLES;

View File

@@ -0,0 +1,3 @@
ALTER TABLE `aowow_comments`
MODIFY COLUMN `type` smallint unsigned NOT NULL DEFAULT 0 COMMENT 'Type of Page',
MODIFY COLUMN `typeId` mediumint NOT NULL DEFAULT 0 COMMENT 'ID Of Page';