From b0f317951bb712d8de8d2c3eedad63d3b55a8f76 Mon Sep 17 00:00:00 2001 From: chfhtw Date: Wed, 15 Jul 2026 16:18:39 +0200 Subject: [PATCH] Add lvv_favorites --- system/dbupdate_3.4.php | 1 + system/dbupdate_3.4/76160_lvv_favorites.php | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 system/dbupdate_3.4/76160_lvv_favorites.php diff --git a/system/dbupdate_3.4.php b/system/dbupdate_3.4.php index 9fd1b8d98..61514df59 100644 --- a/system/dbupdate_3.4.php +++ b/system/dbupdate_3.4.php @@ -98,6 +98,7 @@ require_once('dbupdate_3.4/75888_reihungstest_mehrfachdurchfuehrung.php'); require_once('dbupdate_3.4/76150_perm_other_lv_plan.php'); require_once('dbupdate_3.4/68957_dashboard_bookmark_neue_Spalte_sort.php'); require_once('dbupdate_3.4/68530_Dashboard_Cleanup.php'); +require_once('dbupdate_3.4/76160_lvv_favorites.php'); // *** Pruefung und hinzufuegen der neuen Attribute und Tabellen echo '

Pruefe Tabellen und Attribute!

'; diff --git a/system/dbupdate_3.4/76160_lvv_favorites.php b/system/dbupdate_3.4/76160_lvv_favorites.php new file mode 100644 index 000000000..6d6dfb382 --- /dev/null +++ b/system/dbupdate_3.4/76160_lvv_favorites.php @@ -0,0 +1,16 @@ +db_query("SELECT 1 FROM public.tbl_variablenname WHERE name = 'lvv_favorites';")) +{ + if ($db->db_num_rows($result) == 0) + { + $qry = "INSERT INTO public.tbl_variablenname(name, defaultwert) VALUES('lvv_favorites', null);"; + + if (!$db->db_query($qry)) + echo 'public.tbl_variablenname '.$db->db_last_error().'
'; + else + echo 'public.tbl_variablenname: Added name "lvv_favorites"
'; + } +}