Skip to content

Commit

Permalink
Renamed | to dot in extension/other/db_schema
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Jun 17, 2024
1 parent 3b59200 commit 9b0e332
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions upload/admin/controller/extension/other/db_schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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'],
Expand Down Expand Up @@ -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'],
Expand All @@ -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'],
Expand All @@ -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'],
Expand All @@ -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'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<body>
<div class="container">
{% for title, results in tables %}
{% set titles = title|split('|') %}
{% set titles = title|split('.') %}
<div style="page-break-after: always;">
<h1>{{ title[0] }}</h1>
<table class="table table-bordered">
Expand Down

0 comments on commit 9b0e332

Please sign in to comment.