Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Latest db dump.

  • Loading branch information...
commit d9352c82e297ac8f441c074b918405d2b6950720 1 parent da8324f
Dave Cross authored
Showing with 30 additions and 60 deletions.
  1. +30 −60 literature.sql
90 literature.sql
View
@@ -1,8 +1,8 @@
--- MySQL dump 10.13 Distrib 5.1.47, for redhat-linux-gnu (i386)
+-- MySQL dump 10.13 Distrib 5.5.18, for Linux (i686)
--
--- Host: mag-sol.com Database: literature
+-- Host: localhost Database: literature
-- ------------------------------------------------------
--- Server version 5.0.77
+-- Server version 5.5.18
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -16,10 +16,6 @@
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
--- Not dumping tablespaces as no INFORMATION_SCHEMA.FILES table on this server
---
-
---
-- Table structure for table `actor`
--
@@ -27,12 +23,12 @@ DROP TABLE IF EXISTS `actor`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `actor` (
- `id` int(11) NOT NULL auto_increment,
+ `id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
- `born` date default NULL,
- `died` date default NULL,
- `imdb` char(15) default NULL,
- PRIMARY KEY (`id`),
+ `born` datetime DEFAULT NULL,
+ `died` datetime DEFAULT NULL,
+ `imdb` char(15) DEFAULT NULL,
+ PRIMARY KEY (`id`),
KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -43,7 +39,7 @@ CREATE TABLE `actor` (
LOCK TABLES `actor` WRITE;
/*!40000 ALTER TABLE `actor` DISABLE KEYS */;
-INSERT INTO `actor` VALUES (1,'Jennifer Ehle','1969-12-29','0000-00-00','nm0000383'),(2,'Colin Firth','1960-09-10','0000-00-00','nm0000147');
+INSERT INTO `actor` VALUES (1,'Jennifer Ehle','1969-12-29 00:00:00','0000-00-00 00:00:00','nm0000383'),(2,'Colin Firth','1960-09-10 00:00:00','0000-00-00 00:00:00','nm0000147');
/*!40000 ALTER TABLE `actor` ENABLE KEYS */;
UNLOCK TABLES;
@@ -58,7 +54,7 @@ CREATE TABLE `actor_role` (
`actor` int(11) NOT NULL,
`production` int(11) NOT NULL,
`fictional_character` int(11) NOT NULL,
- PRIMARY KEY (`actor`,`production`,`fictional_character`),
+ PRIMARY KEY (`actor`,`production`,`fictional_character`),
KEY `production` (`production`),
KEY `fictional_character` (`fictional_character`),
CONSTRAINT `actor_role_ibfk_1` FOREIGN KEY (`actor`) REFERENCES `actor` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
@@ -85,12 +81,12 @@ DROP TABLE IF EXISTS `author`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `author` (
- `id` int(11) NOT NULL auto_increment,
+ `id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
- `born` date default NULL,
- `died` date default NULL,
+ `born` datetime DEFAULT NULL,
+ `died` datetime DEFAULT NULL,
`imdb` char(15) NOT NULL,
- PRIMARY KEY (`id`),
+ PRIMARY KEY (`id`),
KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -101,7 +97,7 @@ CREATE TABLE `author` (
LOCK TABLES `author` WRITE;
/*!40000 ALTER TABLE `author` DISABLE KEYS */;
-INSERT INTO `author` VALUES (1,'Charles Dickens','1812-02-07','1870-06-09','nm0002042'),(2,'Jane Austen','1775-12-16','1817-07-18','nm0000807'),(3,'William Shakespeare','1564-04-26','1616-04-23','nm0000636');
+INSERT INTO `author` VALUES (1,'Charles Dickens','1812-02-07 00:00:00','1870-06-09 00:00:00','nm0002042'),(2,'Jane Austen','1775-12-16 00:00:00','1817-07-18 00:00:00','nm0000807'),(3,'William Shakespeare','1564-04-26 00:00:00','1616-04-23 00:00:00','nm0000636');
/*!40000 ALTER TABLE `author` ENABLE KEYS */;
UNLOCK TABLES;
@@ -115,7 +111,7 @@ DROP TABLE IF EXISTS `author_work`;
CREATE TABLE `author_work` (
`author` int(11) NOT NULL,
`work` int(11) NOT NULL,
- PRIMARY KEY (`author`,`work`),
+ PRIMARY KEY (`author`,`work`),
KEY `work` (`work`),
CONSTRAINT `author_work_ibfk_1` FOREIGN KEY (`author`) REFERENCES `author` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `author_work_ibfk_2` FOREIGN KEY (`work`) REFERENCES `work` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
@@ -142,7 +138,7 @@ DROP TABLE IF EXISTS `character`;
CREATE TABLE `character` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
+ PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -156,32 +152,6 @@ LOCK TABLES `character` WRITE;
UNLOCK TABLES;
--
--- Table structure for table `character_appearance`
---
-
-DROP TABLE IF EXISTS `character_appearance`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `character_appearance` (
- `character` int(11) NOT NULL,
- `work` int(11) NOT NULL,
- PRIMARY KEY (`character`,`work`),
- KEY `work` (`work`),
- CONSTRAINT `character_appearance_ibfk_1` FOREIGN KEY (`character`) REFERENCES `character` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT `character_appearance_ibfk_2` FOREIGN KEY (`work`) REFERENCES `work` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `character_appearance`
---
-
-LOCK TABLES `character_appearance` WRITE;
-/*!40000 ALTER TABLE `character_appearance` DISABLE KEYS */;
-/*!40000 ALTER TABLE `character_appearance` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
-- Table structure for table `fictional_character`
--
@@ -189,9 +159,9 @@ DROP TABLE IF EXISTS `fictional_character`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fictional_character` (
- `id` int(11) NOT NULL auto_increment,
+ `id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
+ PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -215,7 +185,7 @@ DROP TABLE IF EXISTS `fictional_character_appearance`;
CREATE TABLE `fictional_character_appearance` (
`fictional_character` int(11) NOT NULL,
`work` int(11) NOT NULL,
- PRIMARY KEY (`fictional_character`,`work`),
+ PRIMARY KEY (`fictional_character`,`work`),
KEY `work` (`work`),
CONSTRAINT `fictional_character_appearance_ibfk_1` FOREIGN KEY (`fictional_character`) REFERENCES `fictional_character` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fictional_character_appearance_ibfk_2` FOREIGN KEY (`work`) REFERENCES `work` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
@@ -240,12 +210,12 @@ DROP TABLE IF EXISTS `production`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `production` (
- `id` int(11) NOT NULL auto_increment,
- `title` varchar(255) default NULL,
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `title` varchar(255) DEFAULT NULL,
`work` int(11) NOT NULL,
- `year` year(4) default NULL,
- `made_by` varchar(255) default NULL,
- PRIMARY KEY (`id`),
+ `year` year(4) DEFAULT NULL,
+ `made_by` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`id`),
KEY `work` (`work`),
CONSTRAINT `production_ibfk_1` FOREIGN KEY (`work`) REFERENCES `work` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
@@ -269,10 +239,10 @@ DROP TABLE IF EXISTS `work`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `work` (
- `id` int(11) NOT NULL auto_increment,
+ `id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
- `published` date default NULL,
- PRIMARY KEY (`id`),
+ `published` datetime DEFAULT NULL,
+ PRIMARY KEY (`id`),
KEY `title` (`title`)
) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -283,7 +253,7 @@ CREATE TABLE `work` (
LOCK TABLES `work` WRITE;
/*!40000 ALTER TABLE `work` DISABLE KEYS */;
-INSERT INTO `work` VALUES (1,'The Pickwick Papers','1836-03-31'),(2,'The Adventures of Oliver Twist','1837-02-28'),(3,'The Life and Adventures of Nicholas Nickleby','1838-04-30'),(4,'The Old Curiosity Shop','1840-04-25'),(5,'Barnaby Rudge','1841-02-13'),(6,'A Christmas Carol','1843-12-19'),(7,'The Chimes','1844-12-01'),(8,'The Cricket on the Hearth','1845-12-20'),(9,'The Battle of Life','1846-12-01'),(10,'The Haunted Man and the Ghost\'s Bargain','1848-12-19'),(11,'The Life and Adventures of Martin Chuzzlewit','1843-01-01'),(12,'Dombey and Son','1846-10-01'),(13,'David Copperfield','1849-05-01'),(14,'Bleak House','1852-03-01'),(15,'Hard Times','1854-04-01'),(16,'Little Dorrit','1855-12-01'),(17,'A Tale of Two Cities','1859-04-30'),(18,'Great Expectations','1860-12-01'),(19,'Our Mutual Friend','1864-05-01'),(20,'The Mystery of Edwin Drood','1870-04-01'),(21,'Sense and Sensibility','1811-01-01'),(22,'Pride and Prejudice','1813-01-28'),(23,'Mansfield Park','1814-07-01'),(24,'Emma','1815-12-01'),(25,'Northanger Abbey','1817-12-01'),(26,'Persuasion','1818-01-01'),(27,'Henry VI Part I',NULL),(28,'Henry VI Part II',NULL),(29,'Henry VI Part III',NULL),(30,'Richard III',NULL),(31,'The Comedy of Errors',NULL),(32,'Titus Andronicus',NULL),(33,'The Taming of the Shrew',NULL),(34,'The Two Gentlemen of Verona',NULL),(35,'Love\'s Labour\'s Lost',NULL),(36,'Romeo and Juliet',NULL),(37,'Richard II',NULL),(38,'A Midsummers Night\'s Dream',NULL),(39,'King John',NULL),(40,'The Merchant of Venice',NULL),(41,'Henry IV Part I',NULL),(42,'Henry IV Part II',NULL),(43,'Henry V',NULL),(44,'Julius Caesar',NULL),(45,'Much Ado About Nothing',NULL),(46,'As You Like It',NULL),(47,'The Merry Wives of Windsor',NULL),(48,'Hamlet',NULL),(49,'Twelfth Night',NULL),(50,'Troilus and Cressida',NULL),(51,'All\'s Well That Ends Well',NULL),(52,'Othello',NULL),(53,'King Lear',NULL),(54,'Macbeth',NULL),(55,'Measure for Measure',NULL),(56,'Antony and Cleopatra',NULL),(57,'Coriolanus',NULL),(58,'Timon of Athens',NULL),(59,'Pericles Prince of Tyre',NULL),(60,'Cymberline',NULL),(61,'The Winter\'s Tales',NULL),(62,'The Tempest',NULL);
+INSERT INTO `work` VALUES (1,'The Pickwick Papers','1836-03-31 00:00:00'),(2,'The Adventures of Oliver Twist','1837-02-28 00:00:00'),(3,'The Life and Adventures of Nicholas Nickleby','1838-04-30 00:00:00'),(4,'The Old Curiosity Shop','1840-04-25 00:00:00'),(5,'Barnaby Rudge','1841-02-13 00:00:00'),(6,'A Christmas Carol','1843-12-19 00:00:00'),(7,'The Chimes','1844-12-01 00:00:00'),(8,'The Cricket on the Hearth','1845-12-20 00:00:00'),(9,'The Battle of Life','1846-12-01 00:00:00'),(10,'The Haunted Man and the Ghost\'s Bargain','1848-12-19 00:00:00'),(11,'The Life and Adventures of Martin Chuzzlewit','1843-01-01 00:00:00'),(12,'Dombey and Son','1846-10-01 00:00:00'),(13,'David Copperfield','1849-05-01 00:00:00'),(14,'Bleak House','1852-03-01 00:00:00'),(15,'Hard Times','1854-04-01 00:00:00'),(16,'Little Dorrit','1855-12-01 00:00:00'),(17,'A Tale of Two Cities','1859-04-30 00:00:00'),(18,'Great Expectations','1860-12-01 00:00:00'),(19,'Our Mutual Friend','1864-05-01 00:00:00'),(20,'The Mystery of Edwin Drood','1870-04-01 00:00:00'),(21,'Sense and Sensibility','1811-01-01 00:00:00'),(22,'Pride and Prejudice','1813-01-28 00:00:00'),(23,'Mansfield Park','1814-07-01 00:00:00'),(24,'Emma','1815-12-01 00:00:00'),(25,'Northanger Abbey','1817-12-01 00:00:00'),(26,'Persuasion','1818-01-01 00:00:00'),(27,'Henry VI Part I',NULL),(28,'Henry VI Part II',NULL),(29,'Henry VI Part III',NULL),(30,'Richard III',NULL),(31,'The Comedy of Errors',NULL),(32,'Titus Andronicus',NULL),(33,'The Taming of the Shrew',NULL),(34,'The Two Gentlemen of Verona',NULL),(35,'Love\'s Labour\'s Lost',NULL),(36,'Romeo and Juliet',NULL),(37,'Richard II',NULL),(38,'A Midsummers Night\'s Dream',NULL),(39,'King John',NULL),(40,'The Merchant of Venice',NULL),(41,'Henry IV Part I',NULL),(42,'Henry IV Part II',NULL),(43,'Henry V',NULL),(44,'Julius Caesar',NULL),(45,'Much Ado About Nothing',NULL),(46,'As You Like It',NULL),(47,'The Merry Wives of Windsor',NULL),(48,'Hamlet',NULL),(49,'Twelfth Night',NULL),(50,'Troilus and Cressida',NULL),(51,'All\'s Well That Ends Well',NULL),(52,'Othello',NULL),(53,'King Lear',NULL),(54,'Macbeth',NULL),(55,'Measure for Measure',NULL),(56,'Antony and Cleopatra',NULL),(57,'Coriolanus',NULL),(58,'Timon of Athens',NULL),(59,'Pericles Prince of Tyre',NULL),(60,'Cymberline',NULL),(61,'The Winter\'s Tales',NULL),(62,'The Tempest',NULL);
/*!40000 ALTER TABLE `work` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -296,4 +266,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2010-09-16 22:35:13
+-- Dump completed on 2012-01-16 19:30:34
Please sign in to comment.
Something went wrong with that request. Please try again.