|
| 1 | +# Generated by Django 5.2.1 on 2025-06-14 16:22 |
| 2 | + |
| 3 | +from django.db import migrations |
| 4 | + |
| 5 | +from sentry.new_migrations.migrations import CheckedMigration |
| 6 | + |
| 7 | + |
| 8 | +class Migration(CheckedMigration): |
| 9 | + # This flag is used to mark that a migration shouldn't be automatically run in production. |
| 10 | + # This should only be used for operations where it's safe to run the migration after your |
| 11 | + # code has deployed. So this should not be used for most operations that alter the schema |
| 12 | + # of a table. |
| 13 | + # Here are some things that make sense to mark as post deployment: |
| 14 | + # - Large data migrations. Typically we want these to be run manually so that they can be |
| 15 | + # monitored and not block the deploy for a long period of time while they run. |
| 16 | + # - Adding indexes to large tables. Since this can take a long time, we'd generally prefer to |
| 17 | + # run this outside deployments so that we don't block them. Note that while adding an index |
| 18 | + # is a schema change, it's completely safe to run the operation after the code has deployed. |
| 19 | + # Once deployed, run these manually via: https://develop.sentry.dev/database-migrations/#migration-deployment |
| 20 | + |
| 21 | + is_post_deployment = False |
| 22 | + |
| 23 | + dependencies = [ |
| 24 | + ("sentry", "0927_dashboard_add_unique_constraint_user_dashboard"), |
| 25 | + ] |
| 26 | + |
| 27 | + operations = [ |
| 28 | + migrations.SeparateDatabaseAndState( |
| 29 | + state_operations=[ |
| 30 | + migrations.RemoveField( |
| 31 | + model_name="notificationactionproject", |
| 32 | + name="action", |
| 33 | + ), |
| 34 | + migrations.RemoveField( |
| 35 | + model_name="notificationactionproject", |
| 36 | + name="project", |
| 37 | + ), |
| 38 | + migrations.RemoveField( |
| 39 | + model_name="notificationmessage", |
| 40 | + name="action", |
| 41 | + ), |
| 42 | + migrations.RemoveField( |
| 43 | + model_name="notificationmessage", |
| 44 | + name="group", |
| 45 | + ), |
| 46 | + migrations.RemoveField( |
| 47 | + model_name="notificationmessage", |
| 48 | + name="incident", |
| 49 | + ), |
| 50 | + migrations.RemoveField( |
| 51 | + model_name="notificationmessage", |
| 52 | + name="parent_notification_message", |
| 53 | + ), |
| 54 | + migrations.RemoveField( |
| 55 | + model_name="notificationmessage", |
| 56 | + name="rule_fire_history", |
| 57 | + ), |
| 58 | + migrations.RemoveField( |
| 59 | + model_name="notificationmessage", |
| 60 | + name="trigger_action", |
| 61 | + ), |
| 62 | + migrations.AlterUniqueTogether( |
| 63 | + name="notificationsettingoption", |
| 64 | + unique_together=None, |
| 65 | + ), |
| 66 | + migrations.RemoveField( |
| 67 | + model_name="notificationsettingoption", |
| 68 | + name="user", |
| 69 | + ), |
| 70 | + migrations.AlterUniqueTogether( |
| 71 | + name="notificationsettingprovider", |
| 72 | + unique_together=None, |
| 73 | + ), |
| 74 | + migrations.RemoveField( |
| 75 | + model_name="notificationsettingprovider", |
| 76 | + name="user", |
| 77 | + ), |
| 78 | + migrations.DeleteModel( |
| 79 | + name="NotificationAction", |
| 80 | + ), |
| 81 | + migrations.DeleteModel( |
| 82 | + name="NotificationActionProject", |
| 83 | + ), |
| 84 | + migrations.DeleteModel( |
| 85 | + name="NotificationMessage", |
| 86 | + ), |
| 87 | + migrations.DeleteModel( |
| 88 | + name="NotificationSettingOption", |
| 89 | + ), |
| 90 | + migrations.DeleteModel( |
| 91 | + name="NotificationSettingProvider", |
| 92 | + ), |
| 93 | + ] |
| 94 | + ) |
| 95 | + ] |
0 commit comments