From 0803fd8967131828fd629e9bf008898a238f0e82 Mon Sep 17 00:00:00 2001 From: Christian Blanquera Date: Fri, 21 Dec 2018 00:24:13 +0800 Subject: [PATCH] mysql version backward compatibility and added fieldset menu --- package/schema/role.php | 5 +++++ src/events.php | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/package/schema/role.php b/package/schema/role.php index c24f52e..4851cc2 100644 --- a/package/schema/role.php +++ b/package/schema/role.php @@ -223,6 +223,11 @@ 'path' => '/admin/system/schema/search', 'label' => 'Schemas' ], + [ + 'icon' => 'fas fa-sliders-h', + 'path' => '/admin/system/fieldset/search', + 'label' => 'Fieldsets' + ], [ 'icon' => 'fas fa-cogs', 'path' => '/admin/configuration', diff --git a/src/events.php b/src/events.php index 6d32bd3..3176016 100644 --- a/src/events.php +++ b/src/events.php @@ -60,6 +60,16 @@ // iterate on each record count foreach ($records as $count) { + //backwards compatibility + if (isset($count['table_name'])) { + $count['TABLE_NAME'] = $count['table_name']; + } + + //backwards compatibility + if (isset($count['table_rows'])) { + $count['TABLE_ROWS'] = $count['table_rows']; + } + // build out the criteria $criteria = sprintf('/%s/search', $count['TABLE_NAME']);