From f1cbe5bd19b5df373d8d2da0e59b3efbb074c379 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Wed, 3 Apr 2024 17:13:44 -0700 Subject: [PATCH] remove unique constraint on visit_key alone --- migrations/20240317182405_hits.up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/20240317182405_hits.up.sql b/migrations/20240317182405_hits.up.sql index 6735166..379bf6a 100644 --- a/migrations/20240317182405_hits.up.sql +++ b/migrations/20240317182405_hits.up.sql @@ -1,7 +1,7 @@ create table if not exists hits ( id integer primary key, page text not null, -- the slug from the page - visit_key text not null unique, + visit_key text not null, viewed timestamp not null default CURRENT_TIMESTAMP, unique(page, visit_key) );