Skip to content
Browse files

Updated MySQL table schemas.

  • Loading branch information...
1 parent 83e323e commit 609f0c2fb7c7f5706dc0039c05ec220a453b2ad2 @joshuaeckroth joshuaeckroth committed Jun 15, 2012
Showing with 72 additions and 8 deletions.
  1. +72 −8 tables.sql
View
80 tables.sql
@@ -1,8 +1,8 @@
--- MySQL dump 10.13 Distrib 5.1.54, for debian-linux-gnu (i686)
+-- MySQL dump 10.13 Distrib 5.5.25, for Linux (x86_64)
--
-- Host: localhost Database: ainews
-- ------------------------------------------------------
--- Server version 5.1.54-1ubuntu4
+-- Server version 5.5.25
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -29,7 +29,7 @@ CREATE TABLE `cat_corpus` (
`content` text NOT NULL,
`adminrate` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`urlid`)
-) ENGINE=MyISAM AUTO_INCREMENT=6499 DEFAULT CHARSET=latin1;
+) ENGINE=MyISAM AUTO_INCREMENT=6881 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -48,6 +48,19 @@ CREATE TABLE `cat_corpus_cats` (
/*!40101 SET character_set_client = @saved_cs_client */;
--
+-- Table structure for table `cat_corpus_cats_single`
+--
+
+DROP TABLE IF EXISTS `cat_corpus_cats_single`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `cat_corpus_cats_single` (
+ `urlid` int(11) NOT NULL,
+ `category` varchar(255) NOT NULL
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
-- Table structure for table `categories`
--
@@ -62,6 +75,37 @@ CREATE TABLE `categories` (
/*!40101 SET character_set_client = @saved_cs_client */;
--
+-- Table structure for table `dup`
+--
+
+DROP TABLE IF EXISTS `dup`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `dup` (
+ `dupid` int(11) NOT NULL AUTO_INCREMENT,
+ `centroid` int(11) DEFAULT NULL,
+ `comment` varchar(64) DEFAULT NULL,
+ PRIMARY KEY (`dupid`),
+ UNIQUE KEY `centroid` (`centroid`)
+) ENGINE=MyISAM AUTO_INCREMENT=32 DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `dupurl`
+--
+
+DROP TABLE IF EXISTS `dupurl`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `dupurl` (
+ `dupid` int(11) NOT NULL,
+ `urlid` int(11) NOT NULL,
+ UNIQUE KEY `urlid` (`urlid`),
+ KEY `dupid` (`dupid`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
-- Table structure for table `sources`
--
@@ -76,7 +120,23 @@ CREATE TABLE `sources` (
`status` int(1) NOT NULL,
`relevance` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=68 DEFAULT CHARSET=latin1;
+) ENGINE=MyISAM AUTO_INCREMENT=70 DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `textwordurl`
+--
+
+DROP TABLE IF EXISTS `textwordurl`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `textwordurl` (
+ `urlid` mediumint(9) NOT NULL,
+ `wordid` mediumint(9) NOT NULL,
+ `freq` smallint(8) NOT NULL,
+ KEY `wordidx` (`urlid`,`wordid`),
+ KEY `locidx` (`urlid`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -97,11 +157,15 @@ CREATE TABLE `urllist` (
`content` text CHARACTER SET utf8,
`processed` tinyint(1) NOT NULL DEFAULT '0',
`published` tinyint(1) NOT NULL DEFAULT '0',
- PRIMARY KEY (`urlid`) USING BTREE,
+ `supervised` tinyint(1) NOT NULL DEFAULT '0',
+ `summary` text NOT NULL,
+ `publishable` tinyint(1) NOT NULL DEFAULT '0',
+ `tfpn` char(2) NOT NULL DEFAULT 'xx',
+ PRIMARY KEY (`urlid`),
UNIQUE KEY `url` (`url`),
KEY `crawldate` (`crawldate`,`pubdate`),
KEY `tag` (`tag`)
-) ENGINE=MyISAM AUTO_INCREMENT=2727 DEFAULT CHARSET=latin1;
+) ENGINE=MyISAM AUTO_INCREMENT=8510 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -131,7 +195,7 @@ CREATE TABLE `wordlist_eval` (
`word` varchar(300) CHARACTER SET utf8 NOT NULL,
`dftext` int(11) NOT NULL DEFAULT '0' COMMENT 'text doc freq',
PRIMARY KEY (`rowid`)
-) ENGINE=MyISAM AUTO_INCREMENT=37238 DEFAULT CHARSET=latin1;
+) ENGINE=MyISAM AUTO_INCREMENT=39632 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -143,4 +207,4 @@ CREATE TABLE `wordlist_eval` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2011-08-21 18:56:50
+-- Dump completed on 2012-06-15 19:04:20

0 comments on commit 609f0c2

Please sign in to comment.
Something went wrong with that request. Please try again.