From f94e9a3a157aaf1c0ec209327c1007d44e2bcd89 Mon Sep 17 00:00:00 2001 From: ma0068 Date: Mon, 4 Apr 2022 09:37:50 +0200 Subject: [PATCH] =?UTF-8?q?Update=20L=C3=B6schen=20alter=20Primary=20Key?= =?UTF-8?q?=20pk=5Ftbl=5Fentwicklungsteam=5Fmitarbeiter=5Fuid,=20studienga?= =?UTF-8?q?ng=5Fkz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/dbupdate_3.3.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/dbupdate_3.3.php b/system/dbupdate_3.3.php index 8ed1bce94..4b25d178f 100644 --- a/system/dbupdate_3.3.php +++ b/system/dbupdate_3.3.php @@ -6057,11 +6057,11 @@ if ($result = @$db->db_query("SELECT column_default FROM INFORMATION_SCHEMA.COLU } //DELETE PRIMARY KEY pk_tbl_entwicklungsteam (mitarbeiter_uid, studiengang_kz) entfernen -if ($result = @$db->db_query("SELECT conname FROM pg_constraint WHERE conname = 'pk_tbl_entwicklungsteam'")) +if ($result = @$db->db_query("SELECT * FROM pg_class WHERE relname='pk_tbl_entwicklungsteam'")) { if($db->db_num_rows($result)==1) { - $qry = "ALTER TABLE bis.tbl_entwicklungsteam DROP CONSTRAINT pk_tbl_entwicklungsteam;"; + $qry = "DROP INDEX bis.pk_tbl_entwicklungsteam;"; if (!$db->db_query($qry)) echo 'bis.tbl_entwicklungsteam: '.$db->db_last_error().'
';