Merge branch 'master' into feature-15390/Zeitwuensche_pro_Semester

# Conflicts:
#	system/dbupdate_3.3.php
This commit is contained in:
Cris
2022-03-28 09:36:26 +02:00
6 changed files with 84 additions and 8 deletions
+15 -1
View File
@@ -5968,7 +5968,7 @@ if(!$result = @$db->db_query("SELECT behebung_parameter FROM system.tbl_issue LI
// Add table campus.tbl_zeitwunsch_gueltigkeit and migrate initial data
if($result = $db->db_query("SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_schema LIKE 'campus' AND table_name = 'tbl_zeitwunsch_gueltigkeit');"))
{
if ($result == false)
if ($db->db_fetch_object($result) == false)
{
$qry = "
CREATE TABLE campus.tbl_zeitwunsch_gueltigkeit
@@ -6085,6 +6085,20 @@ if ($result = $db->db_query("SELECT 1 FROM information_schema.columns WHERE tabl
}
}
// Add index beschreibung to system.tbl_webservicelog
if ($result = $db->db_query("SELECT * FROM pg_class WHERE relname='idx_webservicelog_beschreibung'"))
{
if ($db->db_num_rows($result) == 0)
{
$qry = "CREATE INDEX idx_webservicelog_beschreibung ON system.tbl_webservicelog USING btree (beschreibung)";
if (! $db->db_query($qry))
echo '<strong>Indizes: ' . $db->db_last_error() . '</strong><br>';
else
echo 'Index fuer system.tbl_webservicelog hinzugefuegt';
}
}
// *** Pruefung und hinzufuegen der neuen Attribute und Tabellen
echo '<H2>Pruefe Tabellen und Attribute!</H2>';