From d3c970bd842653c0ebd56bcaa357b04ad5eaada7 Mon Sep 17 00:00:00 2001 From: Nikolaus Krondraf Date: Mon, 19 Oct 2015 13:19:18 +0200 Subject: [PATCH] =?UTF-8?q?Spalte=20standort=5Fid=20zur=20Organisationsein?= =?UTF-8?q?heit=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/checksystem.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/system/checksystem.php b/system/checksystem.php index 35db4ac51..31039d2d7 100644 --- a/system/checksystem.php +++ b/system/checksystem.php @@ -3561,6 +3561,18 @@ if(!$result = @$db->db_query("SELECT aktiv FROM public.tbl_vorlagestudiengang")) echo '
public.tbl_vorlagestudiengang: Neue Spalte aktiv hinzugefuegt. Aktiv bei allen Vorlagen auf true gesetzt.'; } +// Spalte standort_id (FK) zur Organisationseinheit hinzugefügt +if(!$result = @$db->db_query("SELECT standort_id FROM public.tbl_organisationseinheit LIMIT 1")) +{ + $qry = "ALTER TABLE public.tbl_organisationseinheit ADD COLUMN standort_id integer; + ALTER TABLE public.tbl_organisationseinheit ADD CONSTRAINT standort_standort_id FOREIGN KEY (standort_id) REFERENCES public.tbl_standort (standort_id) ON UPDATE CASCADE ON DELETE RESTRICT; + "; + + if(!$db->db_query($qry)) + echo 'Organisationseinheit: '.$db->db_last_error().'
'; + else + echo '
Organisationseinheit: Spalte standort_id hinzugefügt'; +} echo '


';