TaoLer/runtime/update.sql
2023-03-16 22:30:36 +08:00

18 lines
909 B
SQL

ALTER TABLE `tao_system` modify `state` text DEFAULT NULL COMMENT '网站声明';
DROP TABLE IF EXISTS `tao_station`;
CREATE TABLE `tao_station` (
`id` int NOT NULL AUTO_INCREMENT,
`city_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`city_ename` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`master` tinyint(1) NOT NULL DEFAULT 0,
`create_time` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `ename`(`city_ename` ASC) USING BTREE COMMENT 'ename索引'
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tao_station
-- ----------------------------
INSERT INTO `tao_station` VALUES (1, '北京', 'beijing', 1, '2011-11-11 00:00:00');
INSERT INTO `tao_station` VALUES (2, '上海', 'shanghai', 0, '2222-11-21 08:08:08');