fix: add schedulerEventsModifications query

This commit is contained in:
Nybkox
2025-05-13 13:04:10 +02:00
parent 31a6f7b621
commit 660e76145e
3 changed files with 10 additions and 1 deletions

View File

@@ -277,7 +277,7 @@ class Analyser extends DatabaseAnalyser {
const tableModificationsQueryData = await this.analyserQuery('tableModifications');
const procedureModificationsQueryData = await this.analyserQuery('procedureModifications');
const functionModificationsQueryData = await this.analyserQuery('functionModifications');
const schedulerEvents = await this.analyserQuery('schedulerEvents');
const schedulerEvents = await this.analyserQuery('schedulerEventsModifications');
const triggers = await this.analyserQuery('triggersModifications');
return {

View File

@@ -14,6 +14,7 @@ const parameters = require('./parameters');
const triggers = require('./triggers');
const triggersModifications = require('./triggersModifications');
const schedulerEvents = require('./schedulerEvents.js');
const schedulerEventsModifications = require('./schedulerEventsModifications.js');
module.exports = {
columns,
@@ -32,4 +33,5 @@ module.exports = {
triggers,
triggersModifications,
schedulerEvents,
schedulerEventsModifications,
};

View File

@@ -0,0 +1,7 @@
module.exports = `
SELECT
EVENT_NAME,
LAST_ALTERED
FROM INFORMATION_SCHEMA.EVENTS
WHERE EVENT_SCHEMA = '#DATABASE#' AND EVENT_NAME =OBJECT_ID_CONDITION
`;