Mold the things to work with Postgres

This commit is contained in:
Alex Gleason
2024-04-19 20:52:42 -05:00
parent b87a59c521
commit 9ccf6bbea0
14 changed files with 32 additions and 50 deletions

View File

@@ -28,7 +28,7 @@ export const TrendsWorker = {
CREATE TABLE IF NOT EXISTS tag_usages (
tag TEXT NOT NULL COLLATE NOCASE,
pubkey8 TEXT NOT NULL,
inserted_at DATETIME NOT NULL
inserted_at INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_time_tag ON tag_usages(inserted_at, tag);