Skip to content
Snippets Groups Projects
Commit bc30875c authored by Anton Gusev's avatar Anton Gusev
Browse files

change dump

parent fda3cda5
No related branches found
No related tags found
1 merge request!5Develop
This commit is part of merge request !5. Comments created here will be created in the context of that merge request.
......@@ -15,13 +15,13 @@
CREATE TABLE IF NOT EXISTS `alembic_version` (
`version_num` varchar(32) NOT NULL,
PRIMARY KEY (`version_num`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- Экспортируемые данные не выделены.
-- Дамп структуры для таблица db-scrapy-tutorial.books
CREATE TABLE IF NOT EXISTS `books` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`url` varchar(255) DEFAULT NULL,
`url` varchar(255) NOT NULL,
`title` varchar(255) NOT NULL,
`description` text,
`image_path` varchar(255) DEFAULT NULL,
......@@ -35,19 +35,19 @@ CREATE TABLE IF NOT EXISTS `books` (
`count_reviews` int(11) DEFAULT NULL,
`category` varchar(32) DEFAULT NULL,
`currency_type` varchar(4) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `upc` (`upc`),
KEY `ix_books_category` (`category`),
KEY `ix_books_count_reviews` (`count_reviews`),
KEY `ix_books_currency_type` (`currency_type`),
KEY `ix_books_in_stock` (`in_stock`),
KEY `ix_books_price_excl_tax` (`price_excl_tax`),
KEY `ix_books_price_incl_tax` (`price_incl_tax`),
KEY `ix_books_product_type` (`product_type`),
KEY `ix_books_rating` (`rating`),
KEY `ix_books_tax` (`tax`),
KEY `ix_books_title` (`title`)
) ENGINE=InnoDB AUTO_INCREMENT=2001 DEFAULT CHARSET=utf8;
KEY `ix_books_title` (`title`),
KEY `ix_books_url` (`url`)
) ENGINE=InnoDB AUTO_INCREMENT=3001 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- Экспортируемые данные не выделены.
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment