This commit is contained in:
kindlm
2015-10-19 20:07:57 +02:00
4 changed files with 28 additions and 2 deletions
+1 -1
View File
@@ -474,7 +474,7 @@ class anwesenheit extends basis_db
SELECT count(*) anzahl FROM
(SELECT datum, stunde FROM campus.vw_stundenplan
WHERE lehreinheit_id=vw_student_lehrveranstaltung.lehreinheit_id
AND vw_stundenplan.titel not like '%Nebenprüfung%' GROUP BY datum, stunde) as a
AND (vw_stundenplan.titel not like '%Nebenprüfung%' OR vw_stundenplan.titel is null) GROUP BY datum, stunde) as a
) as gesamtstunden
FROM
campus.vw_student_lehrveranstaltung
+1 -1
View File
@@ -229,7 +229,7 @@ class bisverwendung extends basis_db
$this->db_add_param($this->insertamum).', '.
$this->db_add_param($this->insertvon).', '.
$this->db_add_param($this->dv_art).','.
$this->db_add_param($this->inkludierte_lehre).';';
$this->db_add_param($this->inkludierte_lehre).');';
}
else
+1
View File
@@ -20,6 +20,7 @@
*/
require_once(dirname(__FILE__).'/basis_db.class.php');
require_once(dirname(__FILE__).'/sprache.class.php');
class zgv extends basis_db
{
+25
View File
@@ -3561,6 +3561,31 @@ if(!$result = @$db->db_query("SELECT aktiv FROM public.tbl_vorlagestudiengang"))
echo '<br>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 '<strong>Organisationseinheit: '.$db->db_last_error().'</strong><br>';
else
echo '<br>Organisationseinheit: Spalte standort_id hinzugefügt';
}
// Spalte code zum Standort hinzugefügt
if(!$result = @$db->db_query("SELECT code FROM public.tbl_standort LIMIT 1"))
{
$qry = "ALTER TABLE public.tbl_standort ADD COLUMN code varchar(3);
ALTER TABLE public.tbl_standort ADD CONSTRAINT uk_code UNIQUE (code);
";
if(!$db->db_query($qry))
echo '<strong>Standort: '.$db->db_last_error().'</strong><br>';
else
echo '<br>Standort: Spalte code hinzugefügt';
}
echo '<br><br><br>';