From ad369bbe4465ae0a43f43be7cac90169807b186c Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Wed, 28 Sep 2022 16:53:48 +0200 Subject: [PATCH] add dashboard schema and tables create script --- system/dashboard/dbupdate_dashboard.php | 429 ++++++++++++++++++++++++ system/dbupdate_3.3.php | 3 + 2 files changed, 432 insertions(+) create mode 100644 system/dashboard/dbupdate_dashboard.php diff --git a/system/dashboard/dbupdate_dashboard.php b/system/dashboard/dbupdate_dashboard.php new file mode 100644 index 000000000..3e73de3b9 --- /dev/null +++ b/system/dashboard/dbupdate_dashboard.php @@ -0,0 +1,429 @@ +, + * + * Beschreibung: + * Dashboard DB Aenderungen + */ + +if (($result = $db->db_query("SELECT schema_name FROM information_schema.schemata WHERE schema_name='dashboard'"))) +{ + if ($db->db_num_rows($result) == 0) + { + $qry = <<db_query($qry)) + { + echo 'Schema Dashboard: '.$db->db_last_error().'
'; + } + else + { + echo '
Neues Schema dashboard hinzugefuegt'; + } + } +} diff --git a/system/dbupdate_3.3.php b/system/dbupdate_3.3.php index b29171f86..fc5e95b35 100644 --- a/system/dbupdate_3.3.php +++ b/system/dbupdate_3.3.php @@ -6521,6 +6521,9 @@ if($result = @$db->db_query("SELECT * FROM information_schema.role_table_grants } } +// add Dashboard Schema and Tables +include __DIR__ . '/dashboard/dbupdate_dashboard.php'; + // *** Pruefung und hinzufuegen der neuen Attribute und Tabellen echo '

Pruefe Tabellen und Attribute!

';