Skip to content

Commit 8a6da69

Browse files
committed
drop organization_avatar_id since it's not globally unique
1 parent 78b4f2a commit 8a6da69

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/sentry/migrations/1068_add_organization_avatar_replica.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated by Django 5.2.12 on 2026-04-15 23:56
1+
# Generated by Django 5.2.12 on 2026-04-16 00:06
22

33
import sentry.db.models.fields.bounded
44
import sentry.db.models.fields.hybrid_cloud_foreign_key
@@ -36,15 +36,6 @@ class Migration(CheckedMigration):
3636
primary_key=True, serialize=False
3737
),
3838
),
39-
(
40-
"organization_avatar_id",
41-
sentry.db.models.fields.hybrid_cloud_foreign_key.HybridCloudForeignKey(
42-
"sentry.OrganizationAvatar",
43-
db_index=True,
44-
on_delete="CASCADE",
45-
unique=True,
46-
),
47-
),
4839
(
4940
"organization_id",
5041
sentry.db.models.fields.hybrid_cloud_foreign_key.HybridCloudForeignKey(

src/sentry/models/organizationavatarreplica.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
class OrganizationAvatarReplica(Model):
1212
__relocation_scope__ = RelocationScope.Excluded
1313

14-
organization_avatar_id = HybridCloudForeignKey(
15-
"sentry.OrganizationAvatar", on_delete="CASCADE", unique=True
16-
)
1714
organization_id = HybridCloudForeignKey("sentry.Organization", on_delete="CASCADE", unique=True)
1815
avatar_type = models.PositiveSmallIntegerField(default=0)
1916
avatar_ident = models.CharField(max_length=32)

0 commit comments

Comments
 (0)