You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: db/init/mysql/schema.sql
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2057,12 +2057,12 @@ CREATE TABLE `rule` (
2057
2057
`id`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'primary key id',
2058
2058
`selector_id`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'selector id',
2059
2059
`match_mode`int(0) NOT NULL COMMENT 'matching mode (0 and 1 or)',
2060
-
`name`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'rule name',
2060
+
`rule_name`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'rule name',
2061
2061
`enabled`tinyint(0) NOT NULL COMMENT 'whether to open (0 close, 1 open) ',
2062
2062
`loged`tinyint(0) NOT NULL COMMENT 'whether to log or not (0 no print, 1 print) ',
2063
2063
`match_restful`tinyint(0) NOT NULL COMMENT 'whether to match restful(0 cache, 1 not cache)',
2064
2064
`namespace_id`varchar(50) NOT NULL COMMENT 'namespace id',
2065
-
`sort`int(0) NOT NULL COMMENT 'sort',
2065
+
`sort_code`int(0) NOT NULL COMMENT 'sort',
2066
2066
`handle`text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'processing logic (here for different plug-ins, there will be different fields to identify different processes, all data in JSON format is stored)',
2067
2067
`date_created`timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT 'create time',
2068
2068
`date_updated`timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ONUPDATECURRENT_TIMESTAMP(3) COMMENT 'update time',
@@ -2318,7 +2318,7 @@ DROP TABLE IF EXISTS `tag`;
2318
2318
CREATETABLE `tag`
2319
2319
(
2320
2320
`id`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'primary key id',
2321
-
`name`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'tag name',
2321
+
`tag_name`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'tag name',
2322
2322
`tag_desc`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'tag description',
2323
2323
`parent_tag_id`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'parent tag_id',
2324
2324
`ext`varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'extension info',
Copy file name to clipboardExpand all lines: db/init/ob/schema.sql
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1985,12 +1985,12 @@ CREATE TABLE `rule` (
1985
1985
`id`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'primary key id',
1986
1986
`selector_id`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'selector id',
1987
1987
`match_mode`int(0) NOT NULL COMMENT 'matching mode (0 and 1 or)',
1988
-
`name`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'rule name',
1988
+
`rule_name`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'rule name',
1989
1989
`enabled`tinyint(0) NOT NULL COMMENT 'whether to open (0 close, 1 open) ',
1990
1990
`loged`tinyint(0) NOT NULL COMMENT 'whether to log or not (0 no print, 1 print) ',
1991
1991
`match_restful`tinyint(0) NOT NULL COMMENT 'whether to match restful(0 cache, 1 not cache)',
1992
1992
`namespace_id`varchar(50) NOT NULL COMMENT 'namespace id',
1993
-
`sort`int(0) NOT NULL COMMENT 'sort',
1993
+
`sort_code`int(0) NOT NULL COMMENT 'sort',
1994
1994
`handle`text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'processing logic (here for different plug-ins, there will be different fields to identify different processes, all data in JSON format is stored)',
1995
1995
`date_created`timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT 'create time',
1996
1996
`date_updated`timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ONUPDATECURRENT_TIMESTAMP(3) COMMENT 'update time',
@@ -2233,7 +2233,7 @@ DROP TABLE IF EXISTS `tag`;
2233
2233
CREATETABLE `tag`
2234
2234
(
2235
2235
`id`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'primary key id',
2236
-
`name`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'tag name',
2236
+
`tag_name`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'tag name',
2237
2237
`tag_desc`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'tag description',
2238
2238
`parent_tag_id`varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'parent tag_id',
2239
2239
`ext`varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'extension info',
COMMENT ON COLUMN "public"."rule"."id" IS 'primary key id';
1927
1927
COMMENT ON COLUMN "public"."rule"."selector_id" IS 'selector id';
1928
1928
COMMENT ON COLUMN "public"."rule"."match_mode" IS 'matching mode (0 and 1 or)';
1929
-
COMMENT ON COLUMN "public"."rule"."name" IS 'rule name';
1929
+
COMMENT ON COLUMN "public"."rule"."rule_name" IS 'rule name';
1930
1930
COMMENT ON COLUMN "public"."rule"."enabled" IS 'whether to open (0 close, 1 open) ';
1931
1931
COMMENT ON COLUMN "public"."rule"."loged" IS 'whether to log or not (0 no print, 1 print) ';
1932
1932
COMMENT ON COLUMN "public"."rule"."match_restful" IS 'whether to match restful(0 cache, 1 not cache)';
1933
1933
COMMENT ON COLUMN "public"."rule"."namespace_id" IS 'namespace id';
1934
-
COMMENT ON COLUMN "public"."rule"."sort" IS 'sort';
1934
+
COMMENT ON COLUMN "public"."rule"."sort_code" IS 'sort';
1935
1935
COMMENT ON COLUMN "public"."rule"."handle" IS 'processing logic (here for different plug-ins, there will be different fields to identify different processes, all data in JSON format is stored)';
1936
1936
COMMENT ON COLUMN "public"."rule"."date_created" IS 'create time';
1937
1937
COMMENT ON COLUMN "public"."rule"."date_updated" IS 'update time';
@@ -211,7 +211,7 @@ comment on column RULE.selector_id
211
211
is 'selector id';
212
212
comment on column RULE.match_mode
213
213
is 'matching mode (0 and 1 or)';
214
-
comment on column RULE.name
214
+
comment on column RULE.rule_name
215
215
is 'rule name';
216
216
comment on column RULE.enabled
217
217
is 'whether to open (0 not open, 1 open)';
@@ -221,7 +221,7 @@ comment on column RULE.match_restful
221
221
is 'whether to match restful(0 cache, 1 not cache)';
222
222
comment on column RULE.namespace_id
223
223
is 'namespace id';
224
-
comment on column RULE.sort
224
+
comment on column RULE.sort_code
225
225
is 'sort';
226
226
comment on column RULE.handle
227
227
is 'processing logic (here for different plug-ins, there will be different fields to identify different processes, all data in JSON format is stored)';
@@ -2455,7 +2455,7 @@ INSERT /*+ IGNORE_ROW_ON_DUPKEY_INDEX (permission(id)) */ INTO permission (id, o
COMMENT ON COLUMN "public"."rule"."id" IS 'primary key id';
2055
2055
COMMENT ON COLUMN "public"."rule"."selector_id" IS 'selector id';
2056
2056
COMMENT ON COLUMN "public"."rule"."match_mode" IS 'matching mode (0 and 1 or)';
2057
-
COMMENT ON COLUMN "public"."rule"."name" IS 'rule name';
2057
+
COMMENT ON COLUMN "public"."rule"."rule_name" IS 'rule name';
2058
2058
COMMENT ON COLUMN "public"."rule"."enabled" IS 'whether to open (0 close, 1 open) ';
2059
2059
COMMENT ON COLUMN "public"."rule"."loged" IS 'whether to log or not (0 no print, 1 print) ';
2060
2060
COMMENT ON COLUMN "public"."rule"."match_restful" IS 'whether to match restful(0 cache, 1 not cache)';
2061
2061
COMMENT ON COLUMN "public"."rule"."namespace_id" IS 'namespace id';
2062
-
COMMENT ON COLUMN "public"."rule"."sort" IS 'sort';
2062
+
COMMENT ON COLUMN "public"."rule"."sort_code" IS 'sort';
2063
2063
COMMENT ON COLUMN "public"."rule"."handle" IS 'processing logic (here for different plug-ins, there will be different fields to identify different processes, all data in JSON format is stored)';
2064
2064
COMMENT ON COLUMN "public"."rule"."date_created" IS 'create time';
2065
2065
COMMENT ON COLUMN "public"."rule"."date_updated" IS 'update time';
0 commit comments