blob: 10cc7660760d695bd98f6a57fcec6a3cf79aeb91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
CREATE TABLE IF NOT EXISTS `files` (
`hash` varchar(32) COLLATE utf8_bin NOT NULL,
`id` varchar(8) COLLATE utf8_bin NOT NULL,
`filename` varchar(256) COLLATE utf8_bin NOT NULL,
`password` varchar(40) COLLATE utf8_bin DEFAULT NULL,
`date` int(11) NOT NULL,
`mimetype` varchar(255) COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`),
KEY `date` (`date`),
KEY `hash` (`hash`,`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|