From 9b0e332a0ed1ff0b056227e762fb2acfba782abb Mon Sep 17 00:00:00 2001 From: TheCartpenter Date: Mon, 17 Jun 2024 18:00:00 -0400 Subject: [PATCH] Renamed | to dot in extension/other/db_schema --- .../admin/controller/extension/other/db_schema.php | 14 +++++++------- .../template/extension/other/db_schema_report.twig | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/upload/admin/controller/extension/other/db_schema.php b/upload/admin/controller/extension/other/db_schema.php index 4b1e24cb2..34d2952f8 100644 --- a/upload/admin/controller/extension/other/db_schema.php +++ b/upload/admin/controller/extension/other/db_schema.php @@ -233,7 +233,7 @@ public function getReport(): ?\Action { foreach ($table['field'] as $field) { // Core if ($result['Column_name'] == $field['name']) { - $data['tables'][$result['TABLE_NAME'] . '|parent'][] = [ + $data['tables'][$result['TABLE_NAME'] . '.parent'][] = [ 'name' => $result['Column_name'], 'previous_type' => $result['COLUMN_TYPE'], 'type' => $field['type'], @@ -277,7 +277,7 @@ public function getReport(): ?\Action { $type = $val; } - $data['tables'][$result['TABLE_NAME'] . '|child'][] = [ + $data['tables'][$result['TABLE_NAME'] . '.child'][] = [ 'name' => $result['Column_name'], 'previous_type' => $result['COLUMN_TYPE'], 'type' => $type, @@ -330,7 +330,7 @@ public function getReport(): ?\Action { foreach ($table['field'] as $field) { // Core if ($field['name'] == $result['Column_name']) { - $data['tables'][$result['TABLE_NAME'] . '|index'][] = [ + $data['tables'][$result['TABLE_NAME'] . '.index'][] = [ 'name' => $result['Column_name'], 'previous_type' => $result['COLUMN_TYPE'], 'type' => $field['type'], @@ -359,7 +359,7 @@ public function getReport(): ?\Action { if (json_validate($key)) { $key_data = json_decode($key, true); - $data['tables'][$key_data['table'] . '|extension'][] = [ + $data['tables'][$key_data['table'] . '.extension'][] = [ 'name' => $key_data['field'], 'previous_type' => $key_data['previous_type'], 'key' => $key_data['key'], @@ -379,7 +379,7 @@ public function getReport(): ?\Action { // Core if ($key_data['table'] == $result['TABLE_NAME']) { if ($key_data['field'] != $result['Column_name']) { - $data['tables'][$result['TABLE_NAME'] . '|extension'][] = [ + $data['tables'][$result['TABLE_NAME'] . '.extension'][] = [ 'name' => $result['Column_name'], 'previous_type' => $result['COLUMN_TYPE'], 'type' => $result['COLUMN_TYPE'], @@ -389,7 +389,7 @@ public function getReport(): ?\Action { } // Extensions else { - $data['tables'][$result['TABLE_NAME'] . '|extension'][] = [ + $data['tables'][$result['TABLE_NAME'] . '.extension'][] = [ 'name' => $result['Column_name'], 'previous_type' => $result['COLUMN_TYPE'], 'type' => $result['COLUMN_TYPE'], @@ -411,7 +411,7 @@ public function getReport(): ?\Action { foreach ($fields as $result) { if ($result['Column_name'] == $key_data['field']) { - $data['tables'][$result['TABLE_NAME'] . '|extension'][] = [ + $data['tables'][$result['TABLE_NAME'] . '.extension'][] = [ 'name' => $result['Column_name'], 'previous_type' => $result['COLUMN_TYPE'], 'type' => $result['COLUMN_TYPE'], diff --git a/upload/admin/view/template/extension/other/db_schema_report.twig b/upload/admin/view/template/extension/other/db_schema_report.twig index eccd7d7e2..24c591232 100644 --- a/upload/admin/view/template/extension/other/db_schema_report.twig +++ b/upload/admin/view/template/extension/other/db_schema_report.twig @@ -13,7 +13,7 @@
{% for title, results in tables %} - {% set titles = title|split('|') %} + {% set titles = title|split('.') %}

{{ title[0] }}