Browse Source

add index on litemall_groupon_rules.goods_id (#332)

wtune 6 years ago
parent
commit
85bbb8d59e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      litemall-db/sql/litemall_table.sql

+ 2 - 1
litemall-db/sql/litemall_table.sql

@@ -447,7 +447,8 @@ CREATE TABLE `litemall_groupon_rules` (
   `add_time` datetime NOT NULL COMMENT '创建时间',
   `update_time` datetime DEFAULT NULL COMMENT '更新时间',
   `deleted` tinyint(1) DEFAULT '0' COMMENT '逻辑删除',
-  PRIMARY KEY (`id`) USING BTREE
+  PRIMARY KEY (`id`) USING BTREE,
+  KEY `goods_id` (`goods_id`)
 ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='团购规则表';
 /*!40101 SET character_set_client = @saved_cs_client */;