From 2c91756a36c5dfd62427667d2255094cdfc03c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Mon, 16 Dec 2024 13:29:55 +0100 Subject: [PATCH] Added missing APP PEP to checksystem --- system/dbupdate_3.4/48526_pep_tagging.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/system/dbupdate_3.4/48526_pep_tagging.php b/system/dbupdate_3.4/48526_pep_tagging.php index d935d9e92..01e9e5e9f 100644 --- a/system/dbupdate_3.4/48526_pep_tagging.php +++ b/system/dbupdate_3.4/48526_pep_tagging.php @@ -1,6 +1,20 @@ db_query("SELECT 1 FROM system.tbl_app WHERE app='pep'")) +{ + if($db->db_num_rows($result) === 0) + { + $qry = "INSERT INTO system.tbl_app (app) VALUES('pep');"; + + if(!$db->db_query($qry)) + echo 'System Tabelle app: '.$db->db_last_error().'
'; + else + echo '
app pep hinzugefuegt
'; + } +} + // Creates table public.tbl_notiz_typ if it doesn't exist and grants privileges if (!$result = @$db->db_query('SELECT 0 FROM public.tbl_notiz_typ WHERE 0 = 1')) { @@ -11,7 +25,7 @@ if (!$result = @$db->db_query('SELECT 0 FROM public.tbl_notiz_typ WHERE 0 = 1')) beschreibung text, automatisiert boolean NOT NULL, aktiv boolean NOT NULL, - zuordnung text, + zuordnung text, tag boolean NOT NULL, style text, vorrueckung boolean NOT NULL,