Skip to content

Commit f70eb24

Browse files
Revert "ref(db): Drop project_id from Environment (model state) (#45094)"
This reverts commit 6aaa964. Co-authored-by: evanpurkhiser <[email protected]>
1 parent 6aaa964 commit f70eb24

File tree

3 files changed

+3
-36
lines changed

3 files changed

+3
-36
lines changed

migrations_lockfile.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ To resolve this, rebase against latest master and regenerate your migration. Thi
66
will then be regenerated, and you should be able to merge without conflicts.
77

88
nodestore: 0002_nodestore_no_dictfield
9-
sentry: 0364_remove_project_id_from_environment
9+
sentry: 0363_debug_id_artifact_bundle
1010
social_auth: 0001_initial

src/sentry/migrations/0364_remove_project_id_from_environment.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/sentry/models/environment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class Environment(Model):
3838

3939
organization_id = BoundedBigIntegerField()
4040
projects = models.ManyToManyField("sentry.Project", through=EnvironmentProject)
41+
# DEPRECATED, use projects
42+
project_id = BoundedBigIntegerField(null=True)
4143
name = models.CharField(max_length=64)
4244
date_added = models.DateTimeField(default=timezone.now)
4345

0 commit comments

Comments
 (0)