From b90c26412afb08ee79be063c648901b7fd5fb8fd Mon Sep 17 00:00:00 2001 From: ma0068 Date: Fri, 20 Mar 2026 13:06:16 +0100 Subject: [PATCH] DB update: new Organisationseinheittyp Programm --- system/dbupdate_3.4.php | 1 + ...nt_neuer_organisationseinheitstyp_programm.php | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 system/dbupdate_3.4/71566_studienordnungsdokument_neuer_organisationseinheitstyp_programm.php diff --git a/system/dbupdate_3.4.php b/system/dbupdate_3.4.php index 4ddb38203..ac8695de2 100644 --- a/system/dbupdate_3.4.php +++ b/system/dbupdate_3.4.php @@ -92,6 +92,7 @@ require_once('dbupdate_3.4/68744_StV_settings.php'); require_once('dbupdate_3.4/62889_reihungstest_ueberwachung_mit_constructor.php'); require_once('dbupdate_3.4/71399_dashboard_update_widget_paths.php'); require_once('dbupdate_3.4/71645_studvw_messagetab_ladezeit.php'); +require_once('dbupdate_3.4/71566_studienordnungsdokument_neuer_organisationseinheitstyp_programm.php'); // *** Pruefung und hinzufuegen der neuen Attribute und Tabellen echo '

Pruefe Tabellen und Attribute!

'; diff --git a/system/dbupdate_3.4/71566_studienordnungsdokument_neuer_organisationseinheitstyp_programm.php b/system/dbupdate_3.4/71566_studienordnungsdokument_neuer_organisationseinheitstyp_programm.php new file mode 100644 index 000000000..3574a8424 --- /dev/null +++ b/system/dbupdate_3.4/71566_studienordnungsdokument_neuer_organisationseinheitstyp_programm.php @@ -0,0 +1,15 @@ +db_query("SELECT 1 FROM public.tbl_organisationseinheittyp WHERE organisationseinheittyp_kurzbz= 'Programm';")) +{ + if($db->db_num_rows($result) == 0) + { + $qry = "INSERT INTO public.tbl_organisationseinheittyp(organisationseinheittyp_kurzbz, beschreibung, bezeichnung) VALUES ('Programm', 'Programm', 'Programm');"; + + if(!$db->db_query($qry)) + echo 'public.tbl_organisationseinheittyp: '.$db->db_last_error().'
'; + else + echo '
public.tbl_organisationseinheittyp: Zeile Programm hinzugefuegt!
'; + } +}