diff --git a/system/dbupdate_3.3.php b/system/dbupdate_3.3.php index 1d4e990b0..d8f2e16ab 100644 --- a/system/dbupdate_3.3.php +++ b/system/dbupdate_3.3.php @@ -5613,6 +5613,20 @@ if($result = @$db->db_query("SELECT 1 FROM system.tbl_berechtigung WHERE berecht } } +// Add index to campus.tbl_zeitaufzeichnung.uid +if ($result = $db->db_query("SELECT * FROM pg_class WHERE relname='idx_tbl_zeitaufzeichnung_uid'")) +{ + if ($db->db_num_rows($result) == 0) + { + $qry = "CREATE INDEX idx_tbl_zeitaufzeichnung_uid ON campus.tbl_zeitaufzeichnung USING btree (uid)"; + + if (! $db->db_query($qry)) + echo 'Indizes: ' . $db->db_last_error() . '
'; + else + echo 'Index fuer campus.tbl_zeitaufzeichnung.uid hinzugefuegt
'; + } +} + // *** Pruefung und hinzufuegen der neuen Attribute und Tabellen echo '

Pruefe Tabellen und Attribute!

';