remove unique constraint on visit_key alone

This commit is contained in:
Joe Ardent 2024-04-03 17:13:44 -07:00
parent c7fc10069a
commit f1cbe5bd19
1 changed files with 1 additions and 1 deletions

View File

@ -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)