|
@@ -130,7 +130,7 @@ INSERT INTO `events` (`name`, `datetime`, `visitors`) VALUES
|
130
|
130
|
('Launch', '2016-01-01 13:01:01', 0);
|
131
|
131
|
|
132
|
132
|
DROP VIEW IF EXISTS `tag_usage`;
|
133
|
|
-CREATE DEFINER = 'php-crud-api' VIEW `tag_usage` AS select `tags`.`id` as `id`, `name`, count(`name`) AS `count` from `tags`, `post_tags` where `tags`.`id` = `post_tags`.`tag_id` group by `tags`.`id`, `name` order by `count` desc, `name`;
|
|
133
|
+CREATE VIEW `tag_usage` AS select `tags`.`id` as `id`, `name`, count(`name`) AS `count` from `tags`, `post_tags` where `tags`.`id` = `post_tags`.`tag_id` group by `tags`.`id`, `name` order by `count` desc, `name`;
|
134
|
134
|
|
135
|
135
|
DROP TABLE IF EXISTS `products`;
|
136
|
136
|
CREATE TABLE `products` (
|