Skip to content

Commit

Permalink
Fix index queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Dec 28, 2023
1 parent 6985837 commit dac0f86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sql/create_history_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ CREATE TABLE IF NOT EXISTS "lichat-history"(
CONSTRAINT "channel" FOREIGN KEY("channel") REFERENCES "lichat-history-channels"("id") ON DELETE CASCADE
);
CREATE INDEX IF NOT EXISTS "lichat-history.channel" ON "lichat-history" USING hash("channel");
CREATE INDEX IF NOT EXISTS "lichat-history.clock" ON "lichat-history" USING btree("clock") DESC;
CREATE INDEX IF NOT EXISTS "lichat-history.clock" ON "lichat-history" USING btree("clock" DESC);
2 changes: 1 addition & 1 deletion lib/sql/create_iplog_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ CREATE TABLE IF NOT EXISTS "lichat-ip-log"(
CREATE INDEX IF NOT EXISTS "lichat-ip-log.ip" ON "lichat-ip-log" USING hash("ip");
CREATE INDEX IF NOT EXISTS "lichat-ip-log.from" ON "lichat-ip-log" USING hash("from");
CREATE INDEX IF NOT EXISTS "lichat-ip-log.action" ON "lichat-ip-log" USING hash("action");
CREATE INDEX IF NOT EXISTS "lichat-ip-log.clock" ON "lichat-ip-log" USING btree("clock") DESC;
CREATE INDEX IF NOT EXISTS "lichat-ip-log.clock" ON "lichat-ip-log" USING btree("clock" DESC);

0 comments on commit dac0f86

Please sign in to comment.