Skip to content

Commit

Permalink
Add selected missing indexes for PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
dvz committed Jan 1, 2023
1 parent 4acbf4c commit 74d1156
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions install/resources/pgsql_db_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@
$tables[] = "CREATE TABLE mybb_forumsread (
fid int NOT NULL default '0',
uid int NOT NULL default '0',
dateline int NOT NULL default '0'
dateline int NOT NULL default '0',
UNIQUE (fid, uid)
);";

$tables[] = "CREATE TABLE mybb_forumsubscriptions (
Expand Down Expand Up @@ -887,7 +888,8 @@
$tables[] = "CREATE TABLE mybb_threadsread (
tid int NOT NULL default '0',
uid int NOT NULL default '0',
dateline int NOT NULL default '0'
dateline int NOT NULL default '0',
UNIQUE (tid, uid)
);";

$tables[] = "CREATE TABLE mybb_threadsubscriptions (
Expand Down

0 comments on commit 74d1156

Please sign in to comment.