kpt

【createTables.sql】修改建表语句,增加topic列

@@ -17,7 +17,8 @@ CREATE TABLE `article` ( @@ -17,7 +17,8 @@ CREATE TABLE `article` (
17 `authorAvatar` text, 17 `authorAvatar` text,
18 `authorName` text, 18 `authorName` text,
19 `authorDetail` text, 19 `authorDetail` text,
20 - `isVip` double DEFAULT NULL 20 + `isVip` double DEFAULT NULL,
  21 + `topic` text
21 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; 22 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
22 23
23 -- ---------------------------- 24 -- ----------------------------
@@ -32,7 +33,8 @@ CREATE TABLE `comments` ( @@ -32,7 +33,8 @@ CREATE TABLE `comments` (
32 `authorName` text, 33 `authorName` text,
33 `authorGender` text, 34 `authorGender` text,
34 `authorAddress` text, 35 `authorAddress` text,
35 - `authorAvatar` text 36 + `authorAvatar` text,
  37 + `topic` text
36 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; 38 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
37 39
38 -- ---------------------------- 40 -- ----------------------------