Skip to content

Commit

Permalink
Fixed PostgreSQL errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Jan 26, 2022
1 parent 6542b49 commit 30a7020
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sql/pgsql_tableanddata.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@
action smallint NOT NULL,
created timestamp NOT NULL,
PRIMARY KEY (lid)
)
);
CREATE INDEX {$_TABLES['likes']}_type ON {$_TABLES['likes']} (type,subtype,id);
CREATE INDEX {$_TABLES['likes']}type_2 ON {$_TABLES['likes']} (type,id);
";

$_SQL[] = "
Expand Down Expand Up @@ -374,7 +376,10 @@
inherit smallint NOT NULL default '1',
tdefault smallint NOT NULL default '0',
PRIMARY KEY (tid,type,subtype,id)
)
);
CREATE INDEX {$_TABLES['topic_assignments']}_tid ON {$_TABLES['topic_assignments']}(tid, type, id);
CREATE INDEX {$_TABLES['topic_assignments']}_type ON {$_TABLES['topic_assignments']}(type, subtype, id);
CREATE INDEX {$_TABLES['topic_assignments']}_type_2 ON {$_TABLES['topic_assignments']}(type, id);
";

$_SQL[] = "
Expand Down

0 comments on commit 30a7020

Please sign in to comment.