Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- -------------------------------------------------------------
- -- TablePlus 1.2(182)
- --
- -- https://tableplus.com/
- --
- -- Database: docdoc_s_flex
- -- Generation Time: 2019-01-21 18:12:50.9980
- -- -------------------------------------------------------------
- /*!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 utf8mb4 */;
- /*!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 */;
- DROP TABLE IF EXISTS `migration_versions`;
- CREATE TABLE `migration_versions` (
- `version` varchar(14) COLLATE utf8_unicode_ci NOT NULL,
- `executed_at` datetime DEFAULT NULL COMMENT '(DC2Type:datetime_immutable)',
- PRIMARY KEY (`version`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- DROP TABLE IF EXISTS `articles_section`;
- CREATE TABLE `articles_section` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `body` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
- `meta_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `meta_description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `meta_keywords` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `uq_slug` (`slug`)
- ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- DROP TABLE IF EXISTS `articles`;
- CREATE TABLE `articles` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
- `annotation` longtext COLLATE utf8mb4_unicode_ci,
- `body` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
- `meta_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `meta_description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `meta_keywords` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `publish_status` tinyint(1) NOT NULL,
- `section_id` int(11) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `uq_slug` (`slug`),
- KEY `IDX_BFDD3168D823E37A` (`section_id`),
- KEY `idx_status` (`publish_status`),
- CONSTRAINT `FK_BFDD3168D823E37A` FOREIGN KEY (`section_id`) REFERENCES `articles_section` (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- INSERT 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'),
- ('4', 'string', 'string3', 'string', 'string', 'string', 'string', 'string', '0', '2');
- INSERT INTO `articles_section` (`id`, `name`, `slug`, `body`, `meta_title`, `meta_description`, `meta_keywords`) VALUES ('2', 'string', 'string2', 'string', 'string', 'string', 'string'),
- ('3', 'string', 'string', 'string', 'string', 'string', 'string'),
- ('4', 'string', '123', 'string', 'string', 'string', 'string'),
- ('5', 'string', '111', 'string', 'string', 'string', 'string'),
- ('6', 'string', '112', 'string', 'string', 'string', 'string'),
- ('7', 'string', '113', 'string', 'string', 'string', 'string'),
- ('8', 'string', 'strin213g', 'string', 'string', 'string', 'string'),
- ('9', 'string', 'str123123123ing', 'string', 'string', 'string', 'string');
- INSERT INTO `migration_versions` (`version`, `executed_at`) VALUES ('20181128132802', NULL),
- ('20190113172659', NULL),
- ('20190115162411', '2019-01-15 16:25:14'),
- ('20190115162852', '2019-01-15 16:29:10'),
- ('20190120193238', '2019-01-20 19:32:56'),
- ('20190120193640', '2019-01-20 19:36:49');
- /*!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 */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement