Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit c6e7dba

Browse files
committed
Feed.sql: index should not be declared unique.
1 parent 32a1d72 commit c6e7dba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/src/plugins/feed.sql/create.pgsql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ CREATE TABLE ajxp_feed (
1212
content bytea NOT NULL
1313
);
1414

15-
CREATE UNIQUE INDEX ajxp_feed_edate_idx ON ajxp_feed (
15+
CREATE INDEX ajxp_feed_edate_idx ON ajxp_feed (
1616
edate,
1717
etype,
1818
htype,

core/src/plugins/feed.sql/create.sqlite

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CREATE TABLE IF NOT EXISTS ajxp_feed (
99
user_group text,
1010
repository_scope text,
1111
repository_owner text,
12-
content blob NOT NULL,
13-
UNIQUE (edate,htype,user_id,repository_id)
12+
content blob NOT NULL
1413
);
15-
CREATE INDEX ajxp_feed_index_path ON ajxp_feed (index_path);
14+
CREATE INDEX ajxp_feed_index_path ON ajxp_feed (index_path);
15+
CREATE INDEX ajxp_feed_index_multiple ON ajxp_feed (edate, etype, user_id, repository_id) ;

0 commit comments

Comments
 (0)