Skip to content

Commit 166fb1c

Browse files
authored
[5.4] Remove wrong unique constraint from "#__ucm_content" table on PostgreSQL (joomla#46243)
1 parent 1bdb429 commit 166fb1c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- Remove wrong unique constraint from "#__ucm_content" table
2+
ALTER TABLE "#__ucm_content" DROP CONSTRAINT "#__ucm_content_idx_type_alias_item_id" /** CAN FAIL **/;

installation/sql/postgresql/supports.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,7 @@ CREATE TABLE IF NOT EXISTS "#__ucm_content" (
343343
"core_metadesc" text,
344344
"core_catid" bigint DEFAULT 0 NOT NULL,
345345
"core_type_id" bigint DEFAULT 0 NOT NULL,
346-
PRIMARY KEY ("core_content_id"),
347-
CONSTRAINT "#__ucm_content_idx_type_alias_item_id" UNIQUE ("core_type_alias", "core_content_item_id")
346+
PRIMARY KEY ("core_content_id")
348347
);
349348
CREATE INDEX "#__ucm_content_tag_idx" ON "#__ucm_content" ("core_state", "core_access");
350349
CREATE INDEX "#__ucm_content_idx_access" ON "#__ucm_content" ("core_access");

0 commit comments

Comments
 (0)