Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

packages: remove reference to to-be-removed column in code and use default value instead - #47969

Merged
Strum355 merged 1 commit into
mainfrom
nsc/packages-migration1-version-default
Feb 21, 2023
Merged

packages: remove reference to to-be-removed column in code and use default value instead#47969
Strum355 merged 1 commit into
mainfrom
nsc/packages-migration1-version-default

Conversation

@Strum355

@Strum355 Strum355 commented Feb 21, 2023

Copy link
Copy Markdown
Contributor

We should not be referencing the version column from lsif_dependency_repos if we plan to remove it in a later migration. Given we were only inserting a default value anyways, we should just use a default value in postgres instead. Then is safe 👍

Test plan

Migration runs fine, no more references found in code, ran locally

@Strum355 Strum355 added team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) rfc-698 Packages https://docs.google.com/document/d/1aGTzOKXJkf29FXUaDb3uevmIXmX09hYS11UKSp6j2SA/edit package-repos labels Feb 21, 2023
@Strum355
Strum355 requested a review from efritz February 21, 2023 16:33
@Strum355 Strum355 self-assigned this Feb 21, 2023
@cla-bot cla-bot Bot added the cla-signed label Feb 21, 2023
@sourcegraph-bot

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 72471c2...449b1da.

Notify File(s)
@efritz internal/codeintel/dependencies/internal/store/store.go
@mrnugget internal/codeintel/dependencies/internal/store/store.go

@Strum355
Strum355 merged commit f9b7f74 into main Feb 21, 2023
@Strum355
Strum355 deleted the nsc/packages-migration1-version-default branch February 21, 2023 17:41
github-actions Bot pushed a commit that referenced this pull request Feb 21, 2023
…fault value instead (#47969)

We should not be referencing the `version` column from
`lsif_dependency_repos` if we plan to remove it in a later migration.
Given we were only inserting a default value anyways, we should just use
a default value in postgres instead. Then is safe 👍

## Test plan

Migration runs fine, no more references found in code, ran locally

(cherry picked from commit f9b7f74)
Strum355 added a commit that referenced this pull request Feb 21, 2023
…code and use default value instead (#47988)

Backport f9b7f74 from #47969.

---------

Co-authored-by: Noah S-C <noah@sourcegraph.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed i-acknowledge-this-goes-into-the-release package-repos rfc-698 Packages https://docs.google.com/document/d/1aGTzOKXJkf29FXUaDb3uevmIXmX09hYS11UKSp6j2SA/edit team/graph Graph Team (previously Code Intel/Language Tools/Language Platform)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants