Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
2f38030
perf(admin): index snapshot joins and drop the plugin jar from list q…
BobSong-dev Sep 29, 2026
baf2e0b
chore(ci): re-trigger e2e workflow after infra flake
BobSong-dev Sep 29, 2026
ad293cf
Merge remote-tracking branch 'origin/master' into fix/6806-plugin-lis…
BobSong-dev Sep 29, 2026
89dca48
chore(ci): re-trigger e2e and k8s examples workflows after infra flake
BobSong-dev Sep 30, 2026
16e9f71
chore(ci): re-trigger workflows after upstream dependency resolution …
BobSong-dev Sep 30, 2026
75c192c
fix(admin): verify plugin jar list and export contracts on current ma…
BobSong-dev Sep 30, 2026
c49cd0a
chore(ci): retry checks after unrelated test and infrastructure failures
BobSong-dev Sep 30, 2026
3c17501
test(e2e): await RocketMQ logging rule synchronization
BobSong-dev Sep 30, 2026
d9252fe
Merge master and preserve plugin and metadata indexes
BobSong-dev Oct 1, 2026
b87f671
fix(admin): reuse plugin list columns and guard upgrade indexes
BobSong-dev Oct 1, 2026
f6a120e
fix(admin): use metadata-only plugin list responses
BobSong-dev Oct 1, 2026
b580baa
ci: retry storage e2e after HTTPBin upstream failure
BobSong-dev Oct 1, 2026
1dc7cb7
Merge remote-tracking branch 'origin/master' into fix/6806-plugin-lis…
BobSong-dev Oct 4, 2026
09abd51
test(admin): cover plugin index upgrade contracts
BobSong-dev Oct 4, 2026
ffa4ce1
test(ci): gate SQL compatibility on native database matrix
BobSong-dev Oct 6, 2026
96272b3
test(ci): handle native catalog and tenant readiness differences
BobSong-dev Oct 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions db/init/mysql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ CREATE TABLE `permission` (
`resource_id` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'resource primary key 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
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_permission_object_id` (`object_id`) USING BTREE,
KEY `idx_permission_resource_id` (`resource_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'permission table' ROW_FORMAT = Dynamic;

-- ----------------------------
Expand Down Expand Up @@ -1504,7 +1506,8 @@ CREATE TABLE `resource` (
`status` int(0) NOT NULL COMMENT 'status 1:enable 0:disable',
`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
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_resource_parent_id` (`parent_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'resource table' ROW_FORMAT = Dynamic;

-- ----------------------------
Expand Down Expand Up @@ -2163,7 +2166,8 @@ CREATE TABLE `selector` (
`namespace_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'namespace 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
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_selector_plugin_id` (`plugin_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;

-- ----------------------------
Expand Down Expand Up @@ -2355,7 +2359,8 @@ CREATE TABLE `user_role` (
`role_id` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'role primary key',
`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
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_user_role_user_id` (`user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'user and role bind table' ROW_FORMAT = Dynamic;

-- ----------------------------
Expand Down
13 changes: 9 additions & 4 deletions db/init/ob/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ CREATE TABLE `permission` (
`resource_id` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'resource primary key 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
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_permission_object_id` (`object_id`) USING BTREE,
KEY `idx_permission_resource_id` (`resource_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'permission table' ROW_FORMAT = Dynamic;

-- ----------------------------
Expand Down Expand Up @@ -1453,7 +1455,8 @@ CREATE TABLE `resource` (
`status` int(0) NOT NULL COMMENT 'status 1:enable 0:disable',
`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
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_resource_parent_id` (`parent_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'resource table' ROW_FORMAT = Dynamic;

-- ----------------------------
Expand Down Expand Up @@ -2093,7 +2096,8 @@ CREATE TABLE `selector` (
`namespace_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'namespace 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
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_selector_plugin_id` (`plugin_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;

-- ----------------------------
Expand Down Expand Up @@ -2272,7 +2276,8 @@ CREATE TABLE `user_role` (
`role_id` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'role primary key',
`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
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_user_role_user_id` (`user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'user and role bind table' ROW_FORMAT = Dynamic;

-- ----------------------------
Expand Down
21 changes: 21 additions & 0 deletions db/init/og/create-table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2241,6 +2241,11 @@ COMMENT ON COLUMN "public"."user_role"."date_created" IS 'create time';
COMMENT ON COLUMN "public"."user_role"."date_updated" IS 'update time';
COMMENT ON TABLE "public"."user_role" IS 'user and role bind table';

-- ----------------------------
-- Index structure for table user_role
-- ----------------------------
CREATE INDEX "idx_user_role_user_id" ON "public"."user_role" USING btree ("user_id");

-- ----------------------------
-- Records of user_role
-- ----------------------------
Expand Down Expand Up @@ -2312,6 +2317,12 @@ ALTER TABLE "public"."operation_record_log" ADD CONSTRAINT "operation_record_log
-- ----------------------------
ALTER TABLE "public"."permission" ADD CONSTRAINT "permission_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Index structure for table permission
-- ----------------------------
CREATE INDEX "idx_permission_object_id" ON "public"."permission" USING btree ("object_id");
CREATE INDEX "idx_permission_resource_id" ON "public"."permission" USING btree ("resource_id");

-- ----------------------------
-- Primary Key structure for table plugin
-- ----------------------------
Expand Down Expand Up @@ -2343,6 +2354,11 @@ ALTER TABLE "public"."plugin_handle" ADD CONSTRAINT "plugin_handle_pkey" PRIMARY
-- ----------------------------
ALTER TABLE "public"."resource" ADD CONSTRAINT "resource_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Index structure for table resource
-- ----------------------------
CREATE INDEX "idx_resource_parent_id" ON "public"."resource" USING btree ("parent_id");

-- ----------------------------
-- Primary Key structure for table role
-- ----------------------------
Expand All @@ -2363,6 +2379,11 @@ ALTER TABLE "public"."rule_condition" ADD CONSTRAINT "rule_condition_pkey" PRIMA
-- ----------------------------
ALTER TABLE "public"."selector" ADD CONSTRAINT "selector_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Index structure for table selector
-- ----------------------------
CREATE INDEX "idx_selector_plugin_id" ON "public"."selector" USING btree ("plugin_id");

-- ----------------------------
-- Rules structure for table shenyu_dict
-- ----------------------------
Expand Down
9 changes: 9 additions & 0 deletions db/init/oracle/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ create table selector
date_created timestamp(3) default SYSDATE not null,
date_updated timestamp(3) default SYSDATE not null
);

create index idx_selector_plugin_id on selector (plugin_id);
-- Add comments to the columns
comment on column SELECTOR.id
is 'primary key id varchar';
Expand Down Expand Up @@ -665,6 +667,8 @@ create table user_role
date_updated timestamp(3) default SYSDATE not null,
PRIMARY KEY (id)
);

create index idx_user_role_user_id on user_role (user_id);
-- Add comments to the table
comment on table USER_ROLE
is 'user and role bind table';
Expand Down Expand Up @@ -728,6 +732,9 @@ create table permission
date_updated timestamp(3) default SYSDATE not null,
PRIMARY KEY (id)
);

create index idx_permission_object_id on permission (object_id);
create index idx_permission_resource_id on permission (resource_id);
-- Add comments to the table
comment on table PERMISSION
is 'permission table';
Expand Down Expand Up @@ -762,6 +769,8 @@ create table "resource"
date_updated timestamp(3) default SYSDATE not null,
PRIMARY KEY (id)
);

create index idx_resource_parent_id on "resource" (parent_id);
-- Add comments to the table
comment on table "resource"
is 'resource table';
Expand Down
21 changes: 21 additions & 0 deletions db/init/pg/create-table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2364,6 +2364,11 @@ COMMENT ON COLUMN "public"."user_role"."date_created" IS 'create time';
COMMENT ON COLUMN "public"."user_role"."date_updated" IS 'update time';
COMMENT ON TABLE "public"."user_role" IS 'user and role bind table';

-- ----------------------------
-- Index structure for table user_role
-- ----------------------------
CREATE INDEX "idx_user_role_user_id" ON "public"."user_role" USING btree ("user_id");

-- ----------------------------
-- Records of user_role
-- ----------------------------
Expand Down Expand Up @@ -2435,6 +2440,12 @@ ALTER TABLE "public"."operation_record_log" ADD CONSTRAINT "operation_record_log
-- ----------------------------
ALTER TABLE "public"."permission" ADD CONSTRAINT "permission_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Index structure for table permission
-- ----------------------------
CREATE INDEX "idx_permission_object_id" ON "public"."permission" USING btree ("object_id");
CREATE INDEX "idx_permission_resource_id" ON "public"."permission" USING btree ("resource_id");

-- ----------------------------
-- Primary Key structure for table plugin
-- ----------------------------
Expand Down Expand Up @@ -2466,6 +2477,11 @@ ALTER TABLE "public"."plugin_handle" ADD CONSTRAINT "plugin_handle_pkey" PRIMARY
-- ----------------------------
ALTER TABLE "public"."resource" ADD CONSTRAINT "resource_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Index structure for table resource
-- ----------------------------
CREATE INDEX "idx_resource_parent_id" ON "public"."resource" USING btree ("parent_id");

-- ----------------------------
-- Primary Key structure for table role
-- ----------------------------
Expand All @@ -2486,6 +2502,11 @@ ALTER TABLE "public"."rule_condition" ADD CONSTRAINT "rule_condition_pkey" PRIMA
-- ----------------------------
ALTER TABLE "public"."selector" ADD CONSTRAINT "selector_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Index structure for table selector
-- ----------------------------
CREATE INDEX "idx_selector_plugin_id" ON "public"."selector" USING btree ("plugin_id");

-- ----------------------------
-- Rules structure for table shenyu_dict
-- ----------------------------
Expand Down
7 changes: 7 additions & 0 deletions db/upgrade/2.7.1-upgrade-2.7.2-mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,10 @@ INSERT INTO `permission` (`id`, `object_id`, `resource_id`, `date_created`, `dat
INSERT INTO `permission` (`id`, `object_id`, `resource_id`, `date_created`, `date_updated`) VALUES ('1953049887387303973', '1346358560427216896', '1953048313980116913', '2026-09-21 00:00:00', '2026-09-21 00:00:00');
INSERT INTO `permission` (`id`, `object_id`, `resource_id`, `date_created`, `date_updated`) VALUES ('1953049887387303974', '1346358560427216896', '1953048313980116914', '2026-09-21 00:00:00', '2026-09-21 00:00:00');
INSERT INTO `namespace_plugin_rel` (`id`,`namespace_id`,`plugin_id`, `config`, `sort`, `enabled`, `date_created`, `date_updated`) VALUES ('1907261515594055681', '649330b6-c2d7-4edc-be8e-8a54df9eb385', '67', null, 197, 0, '2026-09-21 00:00:00', '2026-09-21 00:00:00');

-- add indexes to speed up the admin plugin snapshot and permission queries
ALTER TABLE `selector` ADD INDEX `idx_selector_plugin_id` (`plugin_id`) USING BTREE;
ALTER TABLE `permission` ADD INDEX `idx_permission_object_id` (`object_id`) USING BTREE;
ALTER TABLE `permission` ADD INDEX `idx_permission_resource_id` (`resource_id`) USING BTREE;
ALTER TABLE `resource` ADD INDEX `idx_resource_parent_id` (`parent_id`) USING BTREE;
ALTER TABLE `user_role` ADD INDEX `idx_user_role_user_id` (`user_id`) USING BTREE;
7 changes: 7 additions & 0 deletions db/upgrade/2.7.1-upgrade-2.7.2-ob.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,10 @@ INSERT INTO `permission` (`id`, `object_id`, `resource_id`, `date_created`, `dat
INSERT INTO `permission` (`id`, `object_id`, `resource_id`, `date_created`, `date_updated`) VALUES ('1953049887387303973', '1346358560427216896', '1953048313980116913', '2026-09-21 00:00:00', '2026-09-21 00:00:00');
INSERT INTO `permission` (`id`, `object_id`, `resource_id`, `date_created`, `date_updated`) VALUES ('1953049887387303974', '1346358560427216896', '1953048313980116914', '2026-09-21 00:00:00', '2026-09-21 00:00:00');
INSERT INTO `namespace_plugin_rel` (`id`,`namespace_id`,`plugin_id`, `config`, `sort`, `enabled`, `date_created`, `date_updated`) VALUES ('1907261515594055681', '649330b6-c2d7-4edc-be8e-8a54df9eb385', '67', NULL, 197, 0, '2026-09-21 00:00:00', '2026-09-21 00:00:00');

-- add indexes to speed up the admin plugin snapshot and permission queries
ALTER TABLE `selector` ADD INDEX `idx_selector_plugin_id` (`plugin_id`) USING BTREE;
ALTER TABLE `permission` ADD INDEX `idx_permission_object_id` (`object_id`) USING BTREE;
ALTER TABLE `permission` ADD INDEX `idx_permission_resource_id` (`resource_id`) USING BTREE;
ALTER TABLE `resource` ADD INDEX `idx_resource_parent_id` (`parent_id`) USING BTREE;
ALTER TABLE `user_role` ADD INDEX `idx_user_role_user_id` (`user_id`) USING BTREE;
7 changes: 7 additions & 0 deletions db/upgrade/2.7.1-upgrade-2.7.2-og.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,10 @@ INSERT INTO "public"."permission" VALUES ('1953049887387303972', '13463585604272
INSERT INTO "public"."permission" VALUES ('1953049887387303973', '1346358560427216896', '1953048313980116913', '2026-09-21 00:00:00.000', '2026-09-21 00:00:00.000');
INSERT INTO "public"."permission" VALUES ('1953049887387303974', '1346358560427216896', '1953048313980116914', '2026-09-21 00:00:00.000', '2026-09-21 00:00:00.000');
INSERT INTO "public"."namespace_plugin_rel" VALUES ('1907261515594055681', '649330b6-c2d7-4edc-be8e-8a54df9eb385', '67', NULL, 197, 0, '2026-09-21 00:00:00.000', '2026-09-21 00:00:00.000');

-- add indexes to speed up the admin plugin snapshot and permission queries
CREATE INDEX "idx_selector_plugin_id" ON "public"."selector" USING btree ("plugin_id");
CREATE INDEX "idx_permission_object_id" ON "public"."permission" USING btree ("object_id");
CREATE INDEX "idx_permission_resource_id" ON "public"."permission" USING btree ("resource_id");
CREATE INDEX "idx_resource_parent_id" ON "public"."resource" USING btree ("parent_id");
CREATE INDEX "idx_user_role_user_id" ON "public"."user_role" USING btree ("user_id");
7 changes: 7 additions & 0 deletions db/upgrade/2.7.1-upgrade-2.7.2-oracle.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,10 @@ INSERT INTO permission (id, object_id, resource_id, date_created, date_updated)
INSERT INTO permission (id, object_id, resource_id, date_created, date_updated) VALUES ('1953049887387303973', '1346358560427216896', '1953048313980116913', sysdate, sysdate);
INSERT INTO permission (id, object_id, resource_id, date_created, date_updated) VALUES ('1953049887387303974', '1346358560427216896', '1953048313980116914', sysdate, sysdate);
INSERT /*+ IGNORE_ROW_ON_DUPKEY_INDEX(namespace_plugin_rel(id)) */ INTO namespace_plugin_rel (id, namespace_id, plugin_id, config, sort, enabled, date_created, date_updated) VALUES ('1907261515594055681', '649330b6-c2d7-4edc-be8e-8a54df9eb385', '67', NULL, 197, 0, sysdate, sysdate);

-- add indexes to speed up the admin plugin snapshot and permission queries
create index idx_selector_plugin_id on selector (plugin_id);
create index idx_permission_object_id on permission (object_id);
create index idx_permission_resource_id on permission (resource_id);
create index idx_resource_parent_id on "resource" (parent_id);
create index idx_user_role_user_id on user_role (user_id);
7 changes: 7 additions & 0 deletions db/upgrade/2.7.1-upgrade-2.7.2-pg.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,10 @@ INSERT INTO "public"."permission" VALUES ('1953049887387303972', '13463585604272
INSERT INTO "public"."permission" VALUES ('1953049887387303973', '1346358560427216896', '1953048313980116913', '2026-09-21 00:00:00.000', '2026-09-21 00:00:00.000');
INSERT INTO "public"."permission" VALUES ('1953049887387303974', '1346358560427216896', '1953048313980116914', '2026-09-21 00:00:00.000', '2026-09-21 00:00:00.000');
INSERT INTO "public"."namespace_plugin_rel" VALUES ('1907261515594055681', '649330b6-c2d7-4edc-be8e-8a54df9eb385', '67', NULL, 197, 0, '2026-09-21 00:00:00.000', '2026-09-21 00:00:00.000');

-- add indexes to speed up the admin plugin snapshot and permission queries
CREATE INDEX "idx_selector_plugin_id" ON "public"."selector" USING btree ("plugin_id");
CREATE INDEX "idx_permission_object_id" ON "public"."permission" USING btree ("object_id");
CREATE INDEX "idx_permission_resource_id" ON "public"."permission" USING btree ("resource_id");
CREATE INDEX "idx_resource_parent_id" ON "public"."resource" USING btree ("parent_id");
CREATE INDEX "idx_user_role_user_id" ON "public"."user_role" USING btree ("user_id");
13 changes: 12 additions & 1 deletion shenyu-admin/src/main/resources/mappers/plugin-sqlmap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@
enabled
</sql>

<sql id="List_Column_List">
id,
date_created,
date_updated,
name,
config,
role,
sort,
enabled
</sql>

<select id="selectById" parameterType="java.lang.String" resultMap="BaseResultMap">
SELECT
<include refid="Base_Column_List"/>
Expand Down Expand Up @@ -86,7 +97,7 @@
<select id="selectByQuery" parameterType="org.apache.shenyu.admin.model.query.PluginQuery"
resultMap="BaseResultMap">
SELECT
<include refid="Base_Column_List"/>
<include refid="List_Column_List"/>
FROM plugin
<where>
<if test="name != null and name != ''">
Expand Down
5 changes: 5 additions & 0 deletions shenyu-admin/src/main/resources/sql-script/h2/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1691,3 +1691,8 @@ INSERT IGNORE INTO `permission` (`id`, `object_id`, `resource_id`, `date_created
INSERT IGNORE INTO `permission` (`id`, `object_id`, `resource_id`, `date_created`, `date_updated`) VALUES ('1953049887387303973', '1346358560427216896', '1953048313980116913', '2026-09-21 00:00:00', '2026-09-21 00:00:00');
INSERT IGNORE INTO `permission` (`id`, `object_id`, `resource_id`, `date_created`, `date_updated`) VALUES ('1953049887387303974', '1346358560427216896', '1953048313980116914', '2026-09-21 00:00:00', '2026-09-21 00:00:00');
INSERT IGNORE INTO `namespace_plugin_rel` (`id`,`namespace_id`,`plugin_id`, `config`, `sort`, `enabled`, `date_created`, `date_updated`) VALUES ('1907261515594055681', '649330b6-c2d7-4edc-be8e-8a54df9eb385', '67', null, 197, 0, '2026-09-21 00:00:00', '2026-09-21 00:00:00');
CREATE INDEX IF NOT EXISTS `idx_selector_plugin_id` ON `selector` (`plugin_id`);
CREATE INDEX IF NOT EXISTS `idx_permission_object_id` ON `permission` (`object_id`);
CREATE INDEX IF NOT EXISTS `idx_permission_resource_id` ON `permission` (`resource_id`);
CREATE INDEX IF NOT EXISTS `idx_resource_parent_id` ON `resource` (`parent_id`);
CREATE INDEX IF NOT EXISTS `idx_user_role_user_id` ON `user_role` (`user_id`);