Skip to content

Commit

Permalink
Revert "ref(db): Drop project_id from Environment (model state) (#4…
Browse files Browse the repository at this point in the history
…5094)"

This reverts commit 6aaa964.

Co-authored-by: evanpurkhiser <1421724+evanpurkhiser@users.noreply.github.com>
  • Loading branch information
getsentry-bot and evanpurkhiser committed Feb 28, 2023
1 parent 6aaa964 commit f70eb24
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 36 deletions.
2 changes: 1 addition & 1 deletion migrations_lockfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ To resolve this, rebase against latest master and regenerate your migration. Thi
will then be regenerated, and you should be able to merge without conflicts.

nodestore: 0002_nodestore_no_dictfield
sentry: 0364_remove_project_id_from_environment
sentry: 0363_debug_id_artifact_bundle
social_auth: 0001_initial
35 changes: 0 additions & 35 deletions src/sentry/migrations/0364_remove_project_id_from_environment.py

This file was deleted.

2 changes: 2 additions & 0 deletions src/sentry/models/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class Environment(Model):

organization_id = BoundedBigIntegerField()
projects = models.ManyToManyField("sentry.Project", through=EnvironmentProject)
# DEPRECATED, use projects
project_id = BoundedBigIntegerField(null=True)
name = models.CharField(max_length=64)
date_added = models.DateTimeField(default=timezone.now)

Expand Down

0 comments on commit f70eb24

Please sign in to comment.