Skip to content

Commit c53349e

Browse files
xiaochaoren1SongZhen0704
authored andcommitted
feat: perf_event is changed to file_event
1 parent feeed27 commit c53349e

File tree

24 files changed

+74
-28
lines changed

24 files changed

+74
-28
lines changed

server/controller/db/metadb/migrator/schema/const.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ const (
2020
RAW_SQL_ROOT_DIR = "/etc/metadb/schema/rawsql"
2121

2222
DB_VERSION_TABLE = "db_version"
23-
DB_VERSION_EXPECTED = "7.0.1.29"
23+
DB_VERSION_EXPECTED = "7.0.1.30"
2424
)

server/controller/db/metadb/migrator/schema/rawsql/mysql/init.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ INSERT INTO data_source (id, display_name, data_table_collection, `interval_time
21732173
VALUES (15, '事件-资源变更事件', 'event.event', 0, 30*24, @lcuuid);
21742174
set @lcuuid = (select uuid());
21752175
INSERT INTO data_source (id, display_name, data_table_collection, `interval_time`, retention_time, lcuuid)
2176-
VALUES (16, '事件-IO 事件', 'event.perf_event', 0, 7*24, @lcuuid);
2176+
VALUES (16, '事件-IO 事件', 'event.file_event', 0, 7*24, @lcuuid);
21772177
set @lcuuid = (select uuid());
21782178
INSERT INTO data_source (id, display_name, data_table_collection, `interval_time`, retention_time, lcuuid)
21792179
VALUES (17, '事件-告警事件', 'event.alert_event', 0, 30*24, @lcuuid);
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
START TRANSACTION;
2+
3+
UPDATE data_source SET data_table_collection='event.file_event' where data_table_collection='event.perf_event';
4+
5+
UPDATE db_version SET version='7.0.1.30';
6+
7+
COMMIT;

server/controller/db/metadb/migrator/schema/rawsql/postgres/init.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,7 @@ INSERT INTO data_source (id, display_name, data_table_collection, interval_time,
15911591
VALUES (15, '事件-资源变更事件', 'event.event', 0, 30 * 24, gen_random_uuid());
15921592

15931593
INSERT INTO data_source (id, display_name, data_table_collection, interval_time, retention_time, lcuuid)
1594-
VALUES (16, '事件-IO 事件', 'event.perf_event', 0, 7 * 24, gen_random_uuid());
1594+
VALUES (16, '事件-IO 事件', 'event.file_event', 0, 7 * 24, gen_random_uuid());
15951595

15961596
INSERT INTO data_source (id, display_name, data_table_collection, interval_time, retention_time, lcuuid)
15971597
VALUES (17, '事件-告警事件', 'event.alert_event', 0, 30 * 24, gen_random_uuid());
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)