Skip to content

Commit 8c14e69

Browse files
committed
feat: restore unique index on stats_requests and remove visitor_logs table definition
1 parent e6fdd5b commit 8c14e69

2 files changed

Lines changed: 1 addition & 57 deletions

File tree

drizzle/0002_stats_requests.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +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`);
9-
--> statement-breakpoint
8+
CREATE UNIQUE INDEX `uq_stats_request_url` ON `stats_requests` (`url`);

drizzle/meta/0002_snapshot.json

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -158,61 +158,6 @@
158158
"compositePrimaryKeys": {},
159159
"uniqueConstraints": {},
160160
"checkConstraints": {}
161-
},
162-
"visitor_logs": {
163-
"name": "visitor_logs",
164-
"columns": {
165-
"id": {
166-
"name": "id",
167-
"type": "integer",
168-
"primaryKey": true,
169-
"notNull": true,
170-
"autoincrement": true
171-
},
172-
"username": {
173-
"name": "username",
174-
"type": "text",
175-
"primaryKey": false,
176-
"notNull": true,
177-
"autoincrement": false
178-
},
179-
"ip_hash": {
180-
"name": "ip_hash",
181-
"type": "text",
182-
"primaryKey": false,
183-
"notNull": true,
184-
"autoincrement": false
185-
},
186-
"visit_date": {
187-
"name": "visit_date",
188-
"type": "text",
189-
"primaryKey": false,
190-
"notNull": true,
191-
"autoincrement": false
192-
},
193-
"created_at": {
194-
"name": "created_at",
195-
"type": "integer",
196-
"primaryKey": false,
197-
"notNull": false,
198-
"autoincrement": false
199-
}
200-
},
201-
"indexes": {
202-
"uq_visitor_log": {
203-
"name": "uq_visitor_log",
204-
"columns": [
205-
"username",
206-
"ip_hash",
207-
"visit_date"
208-
],
209-
"isUnique": true
210-
}
211-
},
212-
"foreignKeys": {},
213-
"compositePrimaryKeys": {},
214-
"uniqueConstraints": {},
215-
"checkConstraints": {}
216161
}
217162
},
218163
"views": {},

0 commit comments

Comments
 (0)