Neue Spalte content in tbl_sprache

This commit is contained in:
Andreas Österreicher
2010-11-09 15:22:51 +00:00
parent 1069f6493c
commit d31588026e
3 changed files with 1370 additions and 304 deletions
+3 -3
View File
@@ -71,12 +71,12 @@
</tr>
<tr>
<td class="tdwrap"></td>
<td><a href="private/info/oeh/index2010herbst.php" target="content" class="Item"><img src="../skin/images/menu_item.gif" alt="menu item" width="7" height="9">&nbsp;&Ouml;H-Herbstwahlen 2010</a></td>
<td><a href="private/info/oeh/index2010herbst.php" target="content" class="Item"><img src="../skin/images/menu_item.gif" alt="menu item" width="7" height="9">&nbsp;&Ouml;H-Mandate Herbst 2010</a></td>
</tr>
<tr>
<!-- <tr>
<td class="tdwrap"></td>
<td><a href="private/info/oeh/bewerber.php" target="content" class="Item"><img src="../skin/images/menu_item.gif" alt="menu item" width="7" height="9">&nbsp;Kandidatur</a></td>
</tr>
</tr> -->
</table>
</tr>
+1352 -300
View File
File diff suppressed because it is too large Load Diff
+15 -1
View File
@@ -1689,6 +1689,20 @@ if($result = $db->db_query("Select count(*) as anzahl FROM pg_class WHERE relnam
}
}
// tbl_sprache spalte content
if(!@$db->db_query("SELECT content FROM public.tbl_sprache LIMIT 1"))
{
$qry = "ALTER TABLE public.tbl_sprache ADD COLUMN content boolean;
UPDATE public.tbl_sprache SET content=true WHERE sprache IN('English','German');
UPDATE public.tbl_sprache SET content=false WHERE content IS NULL;
ALTER TABLE public.tbl_sprache ALTER COLUMN content SET NOT NULL;";
if(!$db->db_query($qry))
echo '<strong>public.tbl_sprache: '.$db->db_last_error().'</strong><br>';
else
echo ' public.tbl_sprache: Spalte content hinzugefuegt!<br>';
}
echo '<br>';
$tabellen=array(
@@ -1815,7 +1829,7 @@ $tabellen=array(
"public.tbl_reihungstest" => array("reihungstest_id","studiengang_kz","ort_kurzbz","anmerkung","datum","uhrzeit","updateamum","updatevon","insertamum","insertvon","ext_id"),
"public.tbl_status" => array("status_kurzbz","beschreibung","anmerkung","ext_id"),
"public.tbl_semesterwochen" => array("semester","studiengang_kz","wochen"),
"public.tbl_sprache" => array("sprache","locale","flagge","index"),
"public.tbl_sprache" => array("sprache","locale","flagge","index","content"),
"public.tbl_standort" => array("standort_id","adresse_id","kurzbz","bezeichnung","insertvon","insertamum","updatevon","updateamum","ext_id", "firma_id"),
"public.tbl_student" => array("student_uid","matrikelnr","prestudent_id","studiengang_kz","semester","verband","gruppe","updateamum","updatevon","insertamum","insertvon","ext_id"),
"public.tbl_studentlehrverband" => array("student_uid","studiensemester_kurzbz","studiengang_kz","semester","verband","gruppe","updateamum","updatevon","insertamum","insertvon","ext_id"),