Skip to content

Commit 0c09569

Browse files
authored
feat: enable maintainers processing for all git, github, and gitlab repos instead of github only (CM-773) (#3594)
1 parent d7130a0 commit 0c09569

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

backend/src/database/migrations/U1762938833__migrateMaintainersRepoReferenceToGitRepositories.sql

Whitespace-only changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-- Migration to remove the foreign key constraint from maintainersInternal.repoId to githubRepos.id
2+
-- This removes the dependency on githubRepos table and creates the new reference to git.repositories table
3+
4+
ALTER TABLE "maintainersInternal"
5+
DROP CONSTRAINT IF EXISTS "maintainersInternal_repoId_fkey";
6+
7+
ALTER TABLE "maintainersInternal"
8+
ADD CONSTRAINT "maintainersInternal_repoId_fkey"
9+
FOREIGN KEY ("repoId")
10+
REFERENCES git.repositories(id)
11+
ON DELETE CASCADE;

0 commit comments

Comments
 (0)