This is an automated email from the ASF dual-hosted git repository.
hefengen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new e37b73010 add tag_relation create table sql (#4660)
e37b73010 is described below
commit e37b73010a571fac478f403707f4c4b6d1d66eda
Author: zcx <[email protected]>
AuthorDate: Tue May 23 18:19:37 2023 +0800
add tag_relation create table sql (#4660)
Co-authored-by: hujiaofen <[email protected]>
---
db/init/mysql/schema.sql | 15 +++++++++++++++
.../apache/shenyu/admin/model/entity/TagRelationDO.java | 2 +-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/db/init/mysql/schema.sql b/db/init/mysql/schema.sql
index bb52c41a5..9a630b3ce 100644
--- a/db/init/mysql/schema.sql
+++ b/db/init/mysql/schema.sql
@@ -1893,4 +1893,19 @@ CREATE TABLE `discovery_rel`
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci
ROW_FORMAT = Dynamic;
+-- ----------------------------
+-- Table structure for tag_relation
+-- ----------------------------
+DROP TABLE IF EXISTS `tag_relation`;
+CREATE TABLE `tag_relation`
+(
+ `id` varchar(128) CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci NOT NULL COMMENT 'primary key id',
+ `api_id` varchar(64) CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci NOT NULL COMMENT 'api id',
+ `tag_id` varchar(128) CHARACTER SET utf8mb4 COLLATE
utf8mb4_unicode_ci NOT NULL COMMENT 'parent tag id',
+ `date_created` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT
'create time',
+ `date_updated` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON
UPDATE CURRENT_TIMESTAMP(3) COMMENT 'update time',
+ PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci
ROW_FORMAT = Dynamic;
+
+
diff --git
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/TagRelationDO.java
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/TagRelationDO.java
index e29ef9147..30c8eb388 100644
---
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/TagRelationDO.java
+++
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/TagRelationDO.java
@@ -29,7 +29,7 @@ public final class TagRelationDO extends BaseDO {
private static final long serialVersionUID = -2968123108441795604L;
/**
- * appid.
+ * apiId.
*/
private String apiId;