sql: 更新表索引命名

This commit is contained in:
TsMask
2025-02-21 10:32:27 +08:00
parent 0bfd3e2b85
commit 3f8c325a0f
10 changed files with 11 additions and 17 deletions

View File

@@ -30,8 +30,7 @@ CREATE TABLE `ne_pool` (
`rm_uid` varchar(50) DEFAULT NULL,
`balance` int(11) DEFAULT NULL,
`update_time` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`,`ne_type`,`ne_id`) USING BTREE,
UNIQUE KEY `idx_netype_neid` (`ne_type`,`ne_id`) USING BTREE
PRIMARY KEY (`id`,`ne_type`,`ne_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=200 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;