· 7 years ago · Jan 21, 2019, 03:16 PM
1-- -------------------------------------------------------------
2-- TablePlus 1.2(182)
3--
4-- https://tableplus.com/
5--
6-- Database: docdoc_s_flex
7-- Generation Time: 2019-01-21 18:12:50.9980
8-- -------------------------------------------------------------
9
10
11/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
12/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
13/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
14/*!40101 SET NAMES utf8mb4 */;
15/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
16/*!40103 SET TIME_ZONE='+00:00' */;
17/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
18/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
19/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
20/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
21
22
23DROP TABLE IF EXISTS `migration_versions`;
24CREATE TABLE `migration_versions` (
25 `version` varchar(14) COLLATE utf8_unicode_ci NOT NULL,
26 `executed_at` datetime DEFAULT NULL COMMENT '(DC2Type:datetime_immutable)',
27 PRIMARY KEY (`version`)
28) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
29
30DROP TABLE IF EXISTS `articles_section`;
31CREATE TABLE `articles_section` (
32 `id` int(11) NOT NULL AUTO_INCREMENT,
33 `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
34 `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
35 `body` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
36 `meta_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
37 `meta_description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
38 `meta_keywords` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
39 PRIMARY KEY (`id`),
40 UNIQUE KEY `uq_slug` (`slug`)
41) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
42
43DROP TABLE IF EXISTS `articles`;
44CREATE TABLE `articles` (
45 `id` int(11) NOT NULL AUTO_INCREMENT,
46 `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
47 `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
48 `annotation` longtext COLLATE utf8mb4_unicode_ci,
49 `body` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
50 `meta_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
51 `meta_description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
52 `meta_keywords` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
53 `publish_status` tinyint(1) NOT NULL,
54 `section_id` int(11) NOT NULL,
55 PRIMARY KEY (`id`),
56 UNIQUE KEY `uq_slug` (`slug`),
57 KEY `IDX_BFDD3168D823E37A` (`section_id`),
58 KEY `idx_status` (`publish_status`),
59 CONSTRAINT `FK_BFDD3168D823E37A` FOREIGN KEY (`section_id`) REFERENCES `articles_section` (`id`)
60) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
61
62INSERT INTO `articles` (`id`, `name`, `slug`, `annotation`, `body`, `meta_title`, `meta_description`, `meta_keywords`, `publish_status`, `section_id`) VALUES ('2', 'string', 'string', 'st3ring', 'string', 'string', 'string', 'string', '1', '4'),
63('4', 'string', 'string3', 'string', 'string', 'string', 'string', 'string', '0', '2');
64
65INSERT INTO `articles_section` (`id`, `name`, `slug`, `body`, `meta_title`, `meta_description`, `meta_keywords`) VALUES ('2', 'string', 'string2', 'string', 'string', 'string', 'string'),
66('3', 'string', 'string', 'string', 'string', 'string', 'string'),
67('4', 'string', '123', 'string', 'string', 'string', 'string'),
68('5', 'string', '111', 'string', 'string', 'string', 'string'),
69('6', 'string', '112', 'string', 'string', 'string', 'string'),
70('7', 'string', '113', 'string', 'string', 'string', 'string'),
71('8', 'string', 'strin213g', 'string', 'string', 'string', 'string'),
72('9', 'string', 'str123123123ing', 'string', 'string', 'string', 'string');
73
74INSERT INTO `migration_versions` (`version`, `executed_at`) VALUES ('20181128132802', NULL),
75('20190113172659', NULL),
76('20190115162411', '2019-01-15 16:25:14'),
77('20190115162852', '2019-01-15 16:29:10'),
78('20190120193238', '2019-01-20 19:32:56'),
79('20190120193640', '2019-01-20 19:36:49');
80
81
82
83
84/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
85/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
86/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
87/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
88/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
89/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
90/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
91/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;