mysql - engine

This commit is contained in:
Jan Prochazka 2024-09-11 09:34:26 +02:00
parent ae9ffe1aef
commit 36a65ea13a

View File

@ -2,6 +2,7 @@ module.exports = `
select
TABLE_NAME as pureName,
TABLE_ROWS as tableRowCount,
ENGINE as tableEngine,
case when ENGINE='InnoDB' then CREATE_TIME else coalesce(UPDATE_TIME, CREATE_TIME) end as modifyDate
from information_schema.tables
where TABLE_SCHEMA = '#DATABASE#' and (TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED') and TABLE_NAME =OBJECT_ID_CONDITION;