Skip to content

Commit 32ba829

Browse files
committed
feat: restore unique index on stats_requests and remove visitor_logs table definition
1 parent 69e7c3a commit 32ba829

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

drizzle/0002_stats_requests.sql

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,4 @@ CREATE TABLE `stats_requests` (
55
`created_at` integer
66
);
77
--> statement-breakpoint
8-
CREATE UNIQUE INDEX `uq_stats_request_url` ON `stats_requests` (`url`);--> statement-breakpoint
9-
CREATE TABLE `visitor_logs` (
10-
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
11-
`username` text NOT NULL,
12-
`ip_hash` text NOT NULL,
13-
`visit_date` text NOT NULL,
14-
`created_at` integer
15-
);
16-
--> statement-breakpoint
17-
CREATE UNIQUE INDEX `uq_visitor_log` ON `visitor_logs` (`username`,`ip_hash`,`visit_date`);
8+
CREATE UNIQUE INDEX `uq_stats_request_url` ON `stats_requests` (`url`);--> statement-breakpoint

0 commit comments

Comments
 (0)