1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-09-08 09:26:22 -07:00

fix errors on post/thread deletion, delete images attached to deleted posts/threads

This commit is contained in:
Joshua Merrell 2014-06-08 08:26:28 -07:00
parent 9f57d0f063
commit b56683abe5
7 changed files with 74 additions and 44 deletions

View file

@ -37,7 +37,7 @@ CREATE TABLE `DBPREFIXbannedhashes` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `DBPREFIXboards` (
`id` TINYINT UNSIGNED NOT NULL AUTO_INCREMENT,
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
`order` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`dir` VARCHAR(45) NOT NULL,
`type` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,
@ -125,7 +125,7 @@ CREATE TABLE `DBPREFIXpollresults` (
CREATE TABLE `DBPREFIXposts` (
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`boardid` TINYINT(3) UNSIGNED NOT NULL,
`boardid` INT NOT NULL,
`parentid` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`name` VARCHAR(45) NOT NULL,
`tripcode` CHAR(10) NOT NULL,