diff --git a/system/dbupdate_3.4/25999_C4_Menu.php b/system/dbupdate_3.4/25999_C4_Menu.php index 786011b30..c8ecc3e97 100755 --- a/system/dbupdate_3.4/25999_C4_Menu.php +++ b/system/dbupdate_3.4/25999_C4_Menu.php @@ -90,6 +90,24 @@ if ($result = @$db->db_query("SELECT * FROM campus.tbl_content WHERE beschreibun 'contentmittitel','tlc',NOW(),null,null,null,TRUE,FALSE,'TLC' ); + -- STUNDENPLAN + + INSERT INTO campus.tbl_content + (template_kurzbz, oe_kurzbz, insertamum, insertvon, updateamum, updatevon, aktiv, menu_open, beschreibung) + VALUES + ( + 'redirect','etw',NOW(),null,null,null,TRUE,FALSE,'STUNDENPLAN' + ); + + -- MYLV + + INSERT INTO campus.tbl_content + (template_kurzbz, oe_kurzbz, insertamum, insertvon, updateamum, updatevon, aktiv, menu_open, beschreibung) + VALUES + ( + 'redirect','etw',NOW(),null,null,null,TRUE,FALSE,'MYLV' + ); + -- ##################################### CONTENTSPRACHE -- CIS4_ROOT @@ -156,7 +174,7 @@ if ($result = @$db->db_query("SELECT * FROM campus.tbl_content WHERE beschreibun -- queries the content_id for the DOKUMENTE (SELECT content_id from campus.tbl_content WHERE beschreibung = 'DOKUMENTE'), 1,TRUE, - '', + '', null,null,null,null,NOW(),null,'Dokumente',null ); @@ -203,6 +221,34 @@ if ($result = @$db->db_query("SELECT * FROM campus.tbl_content WHERE beschreibun null,null,null,null,NOW(),null,'TLC',null ); + -- STUNDENPLAN + + INSERT INTO campus.tbl_contentsprache + (sprache, content_id, version, sichtbar, content, reviewvon, reviewamum, updateamum, updatevon, insertamum, insertvon, titel, gesperrt_uid) + VALUES + ( + 'German', + -- queries the content_id for the STUNDENPLAN + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUNDENPLAN'), + 1,TRUE, + '', + null,null,null,null,NOW(),null,'Stundenplan',null + ); + + -- MYLV + + INSERT INTO campus.tbl_contentsprache + (sprache, content_id, version, sichtbar, content, reviewvon, reviewamum, updateamum, updatevon, insertamum, insertvon, titel, gesperrt_uid) + VALUES + ( + 'German', + -- queries the content_id for the MYLV + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'MYLV'), + 1,TRUE, + '', + null,null,null,null,NOW(),null,'MyLv',null + ); + -- ##################################### CONTENTCHILD -- CIS4_ROOT childs @@ -283,6 +329,28 @@ if ($result = @$db->db_query("SELECT * FROM campus.tbl_content WHERE beschreibun -- Mein Studium childs + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the MEIN_STUDIUM + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'MEIN_STUDIUM'), + -- queries the content_id for the STUNDENPLAN + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'STUNDENPLAN'), + NOW(), null, null, null, 100 + ); + + INSERT INTO campus.tbl_contentchild + (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) + VALUES + ( + -- queries the content_id for the MEIN_STUDIUM + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'MEIN_STUDIUM'), + -- queries the content_id for the MYLV + (SELECT content_id from campus.tbl_content WHERE beschreibung = 'MYLV'), + NOW(), null, null, null, 100 + ); + INSERT INTO campus.tbl_contentchild (content_id, child_content_id, insertamum, insertvon, updateamum, updatevon, sort) VALUES