diff --git a/lib/sql/create_history_table.sql b/lib/sql/create_history_table.sql index e013f44..3f5f2c0 100644 --- a/lib/sql/create_history_table.sql +++ b/lib/sql/create_history_table.sql @@ -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); diff --git a/lib/sql/create_iplog_table.sql b/lib/sql/create_iplog_table.sql index c8049d5..a2936b1 100644 --- a/lib/sql/create_iplog_table.sql +++ b/lib/sql/create_iplog_table.sql @@ -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);