-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscreenshots.sql
More file actions
29 lines (26 loc) · 923 Bytes
/
screenshots.sql
File metadata and controls
29 lines (26 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for screenshots
-- ----------------------------
DROP TABLE IF EXISTS `screenshots`;
CREATE TABLE `screenshots`
(
`id` INT UNSIGNED AUTO_INCREMENT,
`url` VARCHAR(100) CHARSET `utf8mb4` NOT NULL,
`filename` TEXT CHARSET `utf8mb4` NULL,
`date` DATETIME NULL,
`hidden` TINYINT(1) UNSIGNED DEFAULT 0 NULL,
`tags` TEXT CHARSET `utf8mb4` NULL,
`fulltext` LONGTEXT CHARSET `utf8mb4` NULL,
`ocr` TINYINT(1) UNSIGNED DEFAULT 0 NULL,
`mimetype` VARCHAR(255) NULL,
PRIMARY KEY (`id`, `url`),
CONSTRAINT `name`
UNIQUE (`url`)
)
ENGINE = MyISAM
COLLATE = `utf8mb4_unicode_520_ci`;
CREATE FULLTEXT INDEX `Tags`
ON `screenshots` (`tags`);
CREATE FULLTEXT INDEX `fulltext`
ON `screenshots` (`fulltext`);