made filehash TEXT instead of a varchar (fixed maximum length)

This commit is contained in:
Savetheinternet 2011-07-14 11:18:03 +10:00
parent d32f2c43e8
commit 66d06015e3
2 changed files with 3 additions and 3 deletions

View File

@ -199,7 +199,7 @@ CREATE TABLE IF NOT EXISTS `posts_b` (
`fileheight` int(11) DEFAULT NULL, `fileheight` int(11) DEFAULT NULL,
`filesize` int(11) DEFAULT NULL, `filesize` int(11) DEFAULT NULL,
`filename` varchar(30) DEFAULT NULL, `filename` varchar(30) DEFAULT NULL,
`filehash` varchar(40) DEFAULT NULL, `filehash` text DEFAULT NULL,
`password` varchar(20) DEFAULT NULL, `password` varchar(20) DEFAULT NULL,
`ip` varchar(45) NOT NULL, `ip` varchar(45) NOT NULL,
`sticky` int(1) NOT NULL, `sticky` int(1) NOT NULL,

View File

@ -17,11 +17,11 @@ CREATE TABLE IF NOT EXISTS `posts_{board}` (
`fileheight` int(11) DEFAULT NULL, `fileheight` int(11) DEFAULT NULL,
`filesize` int(11) DEFAULT NULL, `filesize` int(11) DEFAULT NULL,
`filename` varchar(30) DEFAULT NULL, `filename` varchar(30) DEFAULT NULL,
`filehash` varchar(40) DEFAULT NULL, `filehash` text DEFAULT NULL,
`password` varchar(20) DEFAULT NULL, `password` varchar(20) DEFAULT NULL,
`ip` varchar(45) NOT NULL, `ip` varchar(45) NOT NULL,
`sticky` int(1) NOT NULL, `sticky` int(1) NOT NULL,
`locked` int(1) NOT NULL, `locked` int(1) NOT NULL,
`embed` text, `embed` text,
UNIQUE KEY `id` (`id`) UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;