From 3ddbcd61c143679dafb87cd5dfc0345075f52230 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 20 Jul 2012 14:11:49 -0400 Subject: [PATCH] Adding schema for tasks. --- earwigbot/tasks/schema/afc_copyvios.sql | 32 ++++++++++++++++ earwigbot/tasks/schema/afc_history.sql | 19 +++++++++ earwigbot/tasks/schema/afc_statistics.sql | 64 +++++++++++++++++++++++++++++++ 3 files changed, 115 insertions(+) create mode 100644 earwigbot/tasks/schema/afc_copyvios.sql create mode 100644 earwigbot/tasks/schema/afc_history.sql create mode 100644 earwigbot/tasks/schema/afc_statistics.sql diff --git a/earwigbot/tasks/schema/afc_copyvios.sql b/earwigbot/tasks/schema/afc_copyvios.sql new file mode 100644 index 0000000..344346a --- /dev/null +++ b/earwigbot/tasks/schema/afc_copyvios.sql @@ -0,0 +1,32 @@ +-- MySQL dump 10.13 Distrib 5.5.12, for solaris10 (i386) +-- +-- Host: sql Database: u_earwig_afc_copyvios +-- ------------------------------------------------------ +-- Server version 5.1.59 + +-- +-- Table structure for table `cache` +-- + +DROP TABLE IF EXISTS `cache`; +CREATE TABLE `cache` ( + `cache_id` int(10) unsigned NOT NULL, + `cache_hash` char(64) DEFAULT NULL, + `cache_url` varchar(512) DEFAULT NULL, + `cache_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `cache_queries` int(4) DEFAULT NULL, + `cache_process_time` float DEFAULT NULL, + PRIMARY KEY (`cache_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `processed` +-- + +DROP TABLE IF EXISTS `processed`; +CREATE TABLE `processed` ( + `page_id` int(10) unsigned NOT NULL, + PRIMARY KEY (`page_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- Dump completed on 2012-07-20 18:04:20 diff --git a/earwigbot/tasks/schema/afc_history.sql b/earwigbot/tasks/schema/afc_history.sql new file mode 100644 index 0000000..8c0d7b7 --- /dev/null +++ b/earwigbot/tasks/schema/afc_history.sql @@ -0,0 +1,19 @@ +-- MySQL dump 10.13 Distrib 5.5.12, for solaris10 (i386) +-- +-- Host: sql Database: u_earwig_afc_history +-- ------------------------------------------------------ +-- Server version 5.1.59 + +-- +-- Table structure for table `page` +-- + +DROP TABLE IF EXISTS `page`; +CREATE TABLE `page` ( + `page_id` int(10) unsigned NOT NULL, + `page_date` varchar(50) DEFAULT NULL, + `page_status` tinyint(3) unsigned DEFAULT NULL, + PRIMARY KEY (`page_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- Dump completed on 2012-07-20 18:03:11 diff --git a/earwigbot/tasks/schema/afc_statistics.sql b/earwigbot/tasks/schema/afc_statistics.sql new file mode 100644 index 0000000..6c5465a --- /dev/null +++ b/earwigbot/tasks/schema/afc_statistics.sql @@ -0,0 +1,64 @@ +-- MySQL dump 10.13 Distrib 5.5.12, for solaris10 (i386) +-- +-- Host: sql Database: u_earwig_afc_statistics +-- ------------------------------------------------------ +-- Server version 5.1.59 + +-- +-- Table structure for table `chart` +-- + +DROP TABLE IF EXISTS `chart`; +CREATE TABLE `chart` ( + `chart_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, + `chart_title` varchar(255) DEFAULT NULL, + `chart_special_title` varchar(255) DEFAULT NULL, + PRIMARY KEY (`chart_id`) +) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; + +-- +-- Dumping data for table `chart` +-- + +LOCK TABLES `chart` WRITE; +INSERT INTO `chart` VALUES +(1,'Pending submissions','Submitted'), +(3,'Being reviewed','Reviewer'), +(4,'Recently accepted','Accepted'), +(5,'Recently declined','Declined'), +(6,'Misplaced submissions','Created'); +UNLOCK TABLES; + +-- +-- Table structure for table `row` +-- + +DROP TABLE IF EXISTS `row`; +CREATE TABLE `row` ( + `row_id` int(10) unsigned NOT NULL, + `row_chart` tinyint(3) unsigned DEFAULT NULL, + PRIMARY KEY (`row_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `page` +-- + +DROP TABLE IF EXISTS `page`; +CREATE TABLE `page` ( + `page_id` int(10) unsigned NOT NULL, + `page_status` varchar(16) DEFAULT NULL, + `page_title` varchar(512) DEFAULT NULL, + `page_short` varchar(512) DEFAULT NULL, + `page_size` varchar(16) DEFAULT NULL, + `page_notes` tinytext, + `page_modify_user` varchar(255) DEFAULT NULL, + `page_modify_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `page_modify_oldid` int(10) unsigned DEFAULT NULL, + `page_special_user` varchar(255) DEFAULT NULL, + `page_special_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `page_special_oldid` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`page_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- Dump completed on 2012-07-20 17:57:36