-
Notifications
You must be signed in to change notification settings - Fork 726
refactor: stop writing to old repositories tables[CM-905] #3776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3858c7e
7c6e8d3
ffc2ded
8c40f39
6fe75f9
e983869
db37ca4
ca910e9
3c5f932
f25e61d
de5f592
9f56955
b3728f4
3c0bbde
674c0d9
77c9083
6ba2fc5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
|
|
||
| ALTER TABLE "maintainersInternal" | ||
| DROP CONSTRAINT IF EXISTS "maintainersInternal_repoId_fkey"; | ||
|
|
||
| ALTER TABLE "maintainersInternal" | ||
| ADD CONSTRAINT "maintainersInternal_repoId_fkey" | ||
| FOREIGN KEY ("repoId") | ||
| REFERENCES repositories(id) | ||
| ON DELETE CASCADE; | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,8 @@ | ||||||
| -- Drop the existing foreign key constraint to git.repositories | ||||||
|
||||||
| ALTER TABLE git."serviceExecutions" | ||||||
| DROP CONSTRAINT "serviceExecutions_repoId_fkey"; | ||||||
|
||||||
| DROP CONSTRAINT "serviceExecutions_repoId_fkey"; | |
| DROP CONSTRAINT IF EXISTS "serviceExecutions_repoId_fkey"; |
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This migration uses
REFERENCES repositories(id)without a schema qualifier, while other migrations in this repo typically qualify (e.g.,REFERENCES git.repositories(id)in V1762938833__migrateMaintainersRepoReferenceToGitRepositories.sql andREFERENCES public.repositories(id)in V1766669430__createGitRepositoryProcessingTable.sql). Preferpublic.repositories(id)here for consistency and to avoid relying onsearch_path.