This commit is contained in:
Jan Prochazka
2020-06-29 08:07:50 +02:00
parent abf7ad478d
commit eaaa7beaa1
5 changed files with 21 additions and 5 deletions

View File

@@ -1,3 +1,3 @@
module.exports = `
SHOW PROCEDURE STATUS WHERE Db = '#DATABASE#'
SHOW FUNCTION STATUS WHERE Db = '#DATABASE#'
`;

View File

@@ -2,7 +2,7 @@ module.exports = `
select
ROUTINE_NAME as pureName,
ROUTINE_TYPE as objectType,
LAST_ALTERED as modifyDate,
COALESCE(LAST_ALTERED, CREATED) as modifyDate,
ROUTINE_DEFINITION as createSql
from information_schema.routines
where ROUTINE_SCHEMA = '#DATABASE#' and ROUTINE_NAME =[OBJECT_NAME_CONDITION]