Skip to content
Permalink
Browse files

add index for items table

  • Loading branch information
gms-hi-oda committed Sep 7, 2019
1 parent cf0eba2 commit 1a84b81e2e6bea76a38946421512098917152bb0
Showing with 2 additions and 1 deletion.
  1. +2 −1 webapp/sql/01_schema.sql
@@ -30,7 +30,8 @@ CREATE TABLE `items` (
`category_id` int unsigned NOT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
INDEX idx_category_id (`category_id`)
INDEX idx_category_id (`category_id`),
INDEX idx_items_id_created_at (created_at, id);
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4;

DROP TABLE IF EXISTS `transaction_evidences`;

0 comments on commit 1a84b81

Please sign in to comment.
You can’t perform that action at this time.