Skip to content

Commit c172ed3

Browse files
[fix] Remove fingerprint_id column from message table schema (#250)
Co-authored-by: Codebuff <noreply@codebuff.com>
1 parent 233244a commit c172ed3

File tree

8 files changed

+2023
-11
lines changed

8 files changed

+2023
-11
lines changed

backend/src/llm-apis/message-cost-tracker.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ async function insertMessageRecord(
378378
...stripNullCharsFromObject({
379379
id: messageId,
380380
user_id: userId,
381-
fingerprint_id: fingerprintId,
382381
client_id: clientSessionId,
383382
client_request_id: userInputId,
384383
model: model,
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ALTER TABLE "message" DROP CONSTRAINT "message_fingerprint_id_fingerprint_id_fk";
2+
--> statement-breakpoint
3+
DROP INDEX IF EXISTS "message_fingerprint_id_idx";--> statement-breakpoint
4+
ALTER TABLE "message" DROP COLUMN IF EXISTS "fingerprint_id";

0 commit comments

Comments
 (0)