Skip to content

Commit 9c55387

Browse files
fix(db): remove duplicate unique constraints from drizzle schema
Remove auto-generated duplicate constraint names (uknlcwyn..., uk6cjmvj...) that exist in local PostgreSQL but not in CI's fresh H2 database. These are duplicates of the named constraints (uq_discussion_repo_number, uq_discussion_category_repo_slug).
1 parent 5c723e6 commit 9c55387

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

  • server/intelligence-service/src/shared/db

server/intelligence-service/src/shared/db/schema.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,6 @@ export const discussion = pgTable(
510510
name: "fk_discussion_provider",
511511
}),
512512
unique("uq_discussion_repo_number").on(table.number, table.repositoryId),
513-
unique("uknlcwyn2relkgw95s8okgpkqrt").on(table.number, table.repositoryId),
514513
unique("uk_discussion_answer_comment_id").on(table.answerCommentId),
515514
unique("uq_discussion_provider_native_id").on(table.nativeId, table.providerId),
516515
],
@@ -541,7 +540,6 @@ export const discussionCategory = pgTable(
541540
name: "fk_discussion_category_repository",
542541
}).onDelete("cascade"),
543542
unique("uq_discussion_category_repo_slug").on(table.slug, table.repositoryId),
544-
unique("uk6cjmvjyh5jc9bfnn8i9wggbo5").on(table.slug, table.repositoryId),
545543
],
546544
);
547545

0 commit comments

Comments
 (0)