This repository has been archived by the owner on May 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfetchproxy.sql
executable file
·68 lines (58 loc) · 1.8 KB
/
fetchproxy.sql
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
-- phpMyAdmin SQL Dump
-- version 3.4.3.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Aug 17, 2012 at 01:48 PM
-- Server version: 5.0.95
-- PHP Version: 5.3.10
--
-- Database: `afranco_fetchproxy`
--
-- --------------------------------------------------------
--
-- Table structure for table `feeds`
--
CREATE TABLE IF NOT EXISTS `feeds` (
`id` varchar(32) NOT NULL,
`url` text NOT NULL,
`headers` text,
`data` longblob,
`status_code` int(11) NOT NULL default '200',
`status_msg` varchar(50) NOT NULL default 'OK',
`first_fetch` timestamp NOT NULL default CURRENT_TIMESTAMP,
`last_fetch` datetime NOT NULL,
`last_access` datetime NOT NULL,
`num_access` int(11) NOT NULL default '1',
`num_errors` int(11) NOT NULL default '0',
`custom_ttl` int(11) default NULL,
PRIMARY KEY (`id`),
KEY `last_access` (`last_access`),
KEY `fetch_index` (`custom_ttl`,`last_fetch`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `log`
--
CREATE TABLE IF NOT EXISTS `log` (
`id` int(11) NOT NULL auto_increment,
`tstamp` timestamp NOT NULL default CURRENT_TIMESTAMP,
`event_type` varchar(20) default NULL,
`feed_id` varchar(32) default NULL,
`feed_url` text,
`fetch_url` text,
`message` text NOT NULL,
`num_errors` int(11) default NULL,
PRIMARY KEY (`id`),
KEY `event_type` (`event_type`),
KEY `feed_id` (`feed_id`),
KEY `tstamp` (`tstamp`,`feed_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `processes`
--
CREATE TABLE IF NOT EXISTS `processes` (
`pid` int(11) NOT NULL,
`tstamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;