Created
November 19, 2017 02:19
-
-
Save rodrigoSyscop/b886e6e9d976cba4e918c323540770bd to your computer and use it in GitHub Desktop.
dockerarticle initial db
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DATABASE `blog`; | |
USE `blog`; | |
# Dump of table posts | |
# ------------------------------------------------------------ | |
DROP TABLE IF EXISTS `posts`; | |
CREATE TABLE `posts` ( | |
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | |
`title` varchar(200) NOT NULL DEFAULT '', | |
`body` text NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
LOCK TABLES `posts` WRITE; | |
/*!40000 ALTER TABLE `posts` DISABLE KEYS */; | |
INSERT INTO `posts` (`id`, `title`, `body`) | |
VALUES | |
(1,'Primeiro Post','Conteúdo do primeiro post'), | |
(2,'Segundo Post','Conteúdo do segundo post'), | |
(3,'Terceiro Post','Conteúdo do terceiro post'); | |
/*!40000 ALTER TABLE `posts` ENABLE KEYS */; | |
UNLOCK TABLES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment