2013-04-03 14:13:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `retriever_rule` (
|
|
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
`uid` int(11) NOT NULL,
|
|
|
|
`contact-id` int(11) NOT NULL,
|
|
|
|
`data` mediumtext NOT NULL,
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
KEY `uid` (`uid`),
|
|
|
|
KEY `contact-id` (`contact-id`)
|
2016-12-17 17:32:31 +01:00
|
|
|
) DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
2013-04-03 14:13:08 +02:00
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `retriever_item` (
|
|
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
`item-uri` varchar(800) CHARACTER SET ascii COLLATE ascii_bin NOT NULL,
|
|
|
|
`item-uid` int(10) unsigned NOT NULL DEFAULT '0',
|
|
|
|
`contact-id` int(10) unsigned NOT NULL DEFAULT '0',
|
|
|
|
`resource` int(11) NOT NULL,
|
|
|
|
`finished` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
|
|
|
KEY `resource` (`resource`),
|
|
|
|
KEY `all` (`item-uri`, `item-uid`, `contact-id`),
|
|
|
|
PRIMARY KEY (`id`)
|
2016-12-17 17:32:31 +01:00
|
|
|
) DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
2013-04-03 14:13:08 +02:00
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `retriever_resource` (
|
|
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
`type` char(255) NOT NULL,
|
|
|
|
`binary` int(1) NOT NULL DEFAULT 0,
|
|
|
|
`url` varchar(800) CHARACTER SET ascii COLLATE ascii_bin NOT NULL,
|
|
|
|
`created` timestamp NOT NULL DEFAULT now(),
|
|
|
|
`completed` timestamp NULL DEFAULT NULL,
|
|
|
|
`last-try` timestamp NULL DEFAULT NULL,
|
|
|
|
`num-tries` int(11) NOT NULL DEFAULT 0,
|
|
|
|
`data` mediumtext NOT NULL,
|
2016-02-03 10:13:09 +01:00
|
|
|
`http-code` smallint(1) unsigned NULL DEFAULT NULL,
|
|
|
|
`redirect-url` varchar(800) CHARACTER SET ascii COLLATE ascii_bin NULL DEFAULT NULL,
|
2013-04-03 14:13:08 +02:00
|
|
|
PRIMARY KEY (`id`)
|
2016-12-17 17:32:31 +01:00
|
|
|
) DEFAULT CHARSET=utf8 COLLATE=utf8_bin
|