Permalink
Browse files

updated mysql v3 dump based on latest database

  • Loading branch information...
remy committed Oct 16, 2012
1 parent 3efe475 commit 7e5d618da0d1909137488652d61fe262d3819aa1
Showing with 110 additions and 41 deletions.
  1. +110 −41 build/full-db-v3.mysql.sql
View
@@ -1,46 +1,115 @@
-CREATE TABLE IF NOT EXISTS `sandbox` (
- `id` INT(11) NOT NULL auto_increment,
- `url` VARCHAR(255) DEFAULT NULL,
- `revision` INT(11) DEFAULT '1',
- `html` TEXT NOT NULL DEFAULT '',
- `css` TEXT NOT NULL DEFAULT '',
- `javascript` TEXT NOT NULL DEFAULT '',
+-- MySQL dump 10.13 Distrib 5.5.12, for Linux (i686)
+--
+-- Host: localhost Database: jsbin
+-- ------------------------------------------------------
+-- Server version 5.5.12
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Table structure for table `forgot_tokens`
+--
+
+DROP TABLE IF EXISTS `forgot_tokens`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `forgot_tokens` (
+ `owner_name` varchar(255) NOT NULL,
+ `token` varchar(255) NOT NULL,
+ `expires` datetime NOT NULL,
+ `created` datetime NOT NULL,
+ KEY `index_expires` (`expires`),
+ KEY `index_token_expires` (`token`,`created`,`expires`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `owners`
+--
+
+DROP TABLE IF EXISTS `owners`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `owners` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` char(25) NOT NULL,
+ `url` char(255) NOT NULL,
+ `revision` int(11) DEFAULT '1',
+ `last_updated` datetime NOT NULL,
+ PRIMARY KEY (`id`),
+ KEY `name_url` (`name`,`url`,`revision`),
+ KEY `last_updated` (`name`,`last_updated`)
+) ENGINE=InnoDB AUTO_INCREMENT=82778 DEFAULT CHARSET=utf8;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `ownership`
+--
+
+DROP TABLE IF EXISTS `ownership`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `ownership` (
+ `name` char(50) NOT NULL,
+ `key` char(255) NOT NULL,
+ `email` varchar(255) NOT NULL DEFAULT '',
+ `last_login` datetime NOT NULL,
+ `created` datetime NOT NULL,
+ `updated` datetime NOT NULL,
+ PRIMARY KEY (`name`),
+ KEY `name_key` (`name`,`key`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `sandbox`
+--
+
+DROP TABLE IF EXISTS `sandbox`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `sandbox` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `javascript` mediumtext COLLATE utf8mb4_unicode_ci,
+ `html` mediumtext COLLATE utf8mb4_unicode_ci,
`created` datetime DEFAULT NULL,
`last_viewed` datetime DEFAULT NULL,
- `last_updated` datetime DEFAULT NULL,
- `active` VARCHAR(1) DEFAULT 'y',
- `reported` DATETIME DEFAULT NULL,
- `settings` TEXT DEFAULT '',
- `streaming` VARCHAR(1) DEFAULT 'n',
- `streaming_key` VARCHAR(32) NOT NULL,
- `streaming_read_key` VARCHAR(32) NOT NULL,
- `active_tab` VARCHAR(10) NOT NULL,
- `active_cursor` INT(11) NOT NULL,
- PRIMARY KEY (`id`),
+ `url` char(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `active` char(1) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'y',
+ `reported` datetime DEFAULT NULL,
+ `streaming` char(1) COLLATE utf8mb4_unicode_ci DEFAULT 'n',
+ `streaming_key` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
+ `streaming_read_key` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
+ `active_tab` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
+ `active_cursor` int(11) NOT NULL,
+ `revision` int(11) DEFAULT '1',
+ `css` mediumtext COLLATE utf8mb4_unicode_ci,
+ `settings` mediumtext COLLATE utf8mb4_unicode_ci,
+ PRIMARY KEY (`id`),
KEY `viewed` (`last_viewed`),
- KEY `url` (`url`),
+ KEY `url` (`url`(191)),
KEY `streaming_key` (`streaming_key`),
KEY `spam` (`created`,`last_viewed`),
- KEY `revision` (`url`,`revision`),
- KEY `last_updated` (`name`, `last_updated`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-
-CREATE TABLE IF NOT EXISTS `ownership` (
- `name` VARCHAR(50) NOT NULL,
- `key` VARCHAR(191) NOT NULL,
- `email` VARCHAR(255) NOT NULL DEFAULT '',
- `last_login` datetime NOT NULL,
- `created` datetime NOT NULL,
- `updated` datetime NOT NULL,
- PRIMARY KEY (`name`),
- KEY `name_key` (`name`,`key`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-
-CREATE TABLE IF NOT EXISTS `owners` (
- `id` INT(11) NOT NULL auto_increment,
- `name` VARCHAR(25) NOT NULL,
- `url` VARCHAR(255) NOT NULL,
- `revision` INT(11) DEFAULT '1',
- PRIMARY KEY (`id`),
- KEY `name_url` (`name`,`url`,`revision`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+ KEY `revision` (`url`(191),`revision`)
+) ENGINE=InnoDB AUTO_INCREMENT=1585411 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2012-10-16 20:17:10

0 comments on commit 7e5d618

Please sign in to comment.