forked from sourcegraph/sourcegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…graph#44299) * Adds migration to remove repo_status from gitserver_repos - Reference issue here: sourcegraph#44009 * Update migrations/frontend/1668184279_remove_git_status_column_from_gitserver_repos_table/up.sql Co-authored-by: Erik Seliger <[email protected]> * Update down.sql Co-authored-by: Erik Seliger <[email protected]>
- Loading branch information
1 parent
43ab26e
commit 15c2723
Showing
6 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
migrations/frontend/1668184279_remove_git_status_column_from_gitserver_repos_table/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- Undo the changes made in the up migration | ||
ALTER TABLE gitserver_repos | ||
ADD COLUMN IF NOT EXISTS repo_status text; |
2 changes: 2 additions & 0 deletions
2
...ons/frontend/1668184279_remove_git_status_column_from_gitserver_repos_table/metadata.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
name: remove git_status column from gitserver_repos table | ||
parents: [1668174127] |
13 changes: 13 additions & 0 deletions
13
migrations/frontend/1668184279_remove_git_status_column_from_gitserver_repos_table/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- Perform migration here. | ||
-- | ||
-- See /migrations/README.md. Highlights: | ||
-- * Make migrations idempotent (use IF EXISTS) | ||
-- * Make migrations backwards-compatible (old readers/writers must continue to work) | ||
-- * If you are using CREATE INDEX CONCURRENTLY, then make sure that only one statement | ||
-- is defined per file, and that each such statement is NOT wrapped in a transaction. | ||
-- Each such migration must also declare "createIndexConcurrently: true" in their | ||
-- associated metadata.yaml file. | ||
-- * If you are modifying Postgres extensions, you must also declare "privileged: true" | ||
-- in the associated metadata.yaml file. | ||
|
||
ALTER TABLE gitserver_repos DROP COLUMN IF EXISTS repo_status; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters