Skip to content

Commit 241df9f

Browse files
authored
Merge branch 'main' into script/clean-duplicate-orgs
2 parents fd852e4 + 0c09569 commit 241df9f

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)