Skip to content

Commit fd9a6f2

Browse files
ref: remove remote_subscriptions migrations
this is a noop now and after the last hard stop already
1 parent d1cfe01 commit fd9a6f2

10 files changed

+1
-161
lines changed

migrations_lockfile.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ monitors: 0005_record_date_in_progress_state
1717

1818
nodestore: 0002_nodestore_no_dictfield
1919

20-
remote_subscriptions: 0003_drop_remote_subscription
21-
2220
replays: 0005_drop_replay_index
2321

2422
sentry: 0904_onboarding_task_project_id_idx

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ module = [
350350
"sentry.release_health.release_monitor.*",
351351
"sentry.relocation.api.endpoints.artifacts.*",
352352
"sentry.relocation.services.relocation_export.*",
353-
"sentry.remote_subscriptions.migrations.*",
354353
"sentry.replays.consumers.*",
355354
"sentry.replays.lib.new_query.*",
356355
"sentry.replays.migrations.*",

src/sentry/remote_subscriptions/migrations/0001_remote_subscription.py

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

src/sentry/remote_subscriptions/migrations/0002_remove_separate_remote_subscription.py

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

src/sentry/remote_subscriptions/migrations/0003_drop_remote_subscription.py

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

src/sentry/remote_subscriptions/migrations/__init__.py

Whitespace-only changes.

src/sentry/uptime/migrations/0001_uptime_subscriptions.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class Migration(CheckedMigration):
2727
initial = True
2828

2929
dependencies = [
30-
("remote_subscriptions", "0001_remote_subscription"),
3130
("sentry", "0731_add_insight_project_flags"),
3231
]
3332

@@ -41,14 +40,6 @@ class Migration(CheckedMigration):
4140
primary_key=True, serialize=False
4241
),
4342
),
44-
(
45-
"remote_subscription",
46-
sentry.db.models.fields.foreignkey.FlexibleForeignKey(
47-
on_delete=django.db.models.deletion.CASCADE,
48-
to="remote_subscriptions.remotesubscription",
49-
unique=True,
50-
),
51-
),
5243
("url", models.CharField(max_length=255)),
5344
("interval_seconds", models.IntegerField()),
5445
("timeout_ms", models.IntegerField()),

src/sentry/uptime/migrations/0002_remove_separate_remote_subscription.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# Generated by Django 5.0.6 on 2024-06-21 17:10
22

3-
import django.db.models.deletion
43
from django.db import migrations, models
54

6-
import sentry.db.models.fields.foreignkey
75
from sentry.new_migrations.migrations import CheckedMigration
86
from sentry.new_migrations.monkey.special import SafeRunSQL
97

@@ -25,16 +23,11 @@ class Migration(CheckedMigration):
2523

2624
dependencies = [
2725
("uptime", "0001_uptime_subscriptions"),
28-
("remote_subscriptions", "0001_remote_subscription"),
2926
]
3027

3128
operations = [
3229
migrations.SeparateDatabaseAndState(
3330
state_operations=[
34-
migrations.RemoveField(
35-
model_name="uptimesubscription",
36-
name="remote_subscription",
37-
),
3831
migrations.AddField(
3932
model_name="uptimesubscription",
4033
name="type",
@@ -48,16 +41,6 @@ class Migration(CheckedMigration):
4841
),
4942
],
5043
database_operations=[
51-
migrations.AlterField(
52-
model_name="uptimesubscription",
53-
name="remote_subscription",
54-
field=sentry.db.models.fields.foreignkey.FlexibleForeignKey(
55-
null=True,
56-
on_delete=django.db.models.deletion.CASCADE,
57-
to="remote_subscriptions.remotesubscription",
58-
unique=True,
59-
),
60-
),
6144
SafeRunSQL(
6245
"""
6346
ALTER TABLE "uptime_uptimesubscription" ADD COLUMN "type" text NOT NULL;

src/sentry/uptime/migrations/0003_drop_remote_subscription.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Generated by Django 5.0.6 on 2024-06-21 22:03
22
from sentry.new_migrations.migrations import CheckedMigration
3-
from sentry.new_migrations.monkey.special import SafeRunSQL
43

54

65
class Migration(CheckedMigration):
@@ -22,14 +21,4 @@ class Migration(CheckedMigration):
2221
("uptime", "0002_remove_separate_remote_subscription"),
2322
]
2423

25-
operations = [
26-
SafeRunSQL(
27-
"""
28-
ALTER TABLE "uptime_uptimesubscription" DROP COLUMN "remote_subscription_id";
29-
""",
30-
reverse_sql="""
31-
ALTER TABLE "uptime_uptimesubscription" ADD COLUMN "remote_subscription_id" bigint NULL;
32-
""",
33-
hints={"tables": ["uptime_uptimesubscription"]},
34-
)
35-
]
24+
operations = []

src/sentry/uptime/migrations/0004_projectuptimesubscription_mode.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class Migration(CheckedMigration):
2525

2626
dependencies = [
2727
("sentry", "0731_add_insight_project_flags"),
28-
("uptime", "0003_drop_remote_subscription"),
2928
]
3029

3130
operations = [

0 commit comments

Comments
 (0)