mysql - analyse modifications

This commit is contained in:
Jan Prochazka
2020-06-28 15:22:34 +02:00
parent 536ee6678f
commit 8e9b6d5ea2
12 changed files with 132 additions and 16 deletions

View File

@@ -1,7 +1,8 @@
module.exports = `
select
TABLE_NAME,
case when ENGINE='InnoDB' then CREATE_TIME else coalesce(UPDATE_TIME, CREATE_TIME) end as ALTER_TIME
TABLE_NAME as pureName,
TABLE_TYPE as objectType,
case when ENGINE='InnoDB' then CREATE_TIME else coalesce(UPDATE_TIME, CREATE_TIME) end as modifyDate
from information_schema.tables
where TABLE_SCHEMA = '#DATABASE#'
`;