@@ -0,0 +1,1147 @@
+# Generated by Django 3.2.13 on 2022-06-28 12:02%0A%0Afrom django.db import migrations%0Afrom django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor%0Afrom django.db.migrations.state import StateApps%0A%0A%0Adef set_default_value_for_can_remove_subscribers_group(%0A    apps: StateApps, schema_editor: BaseDatabaseSchemaEditor%0A) -%3E None:%0A    Stream = apps.get_model(%22zerver%22, %22Stream%22)%0A    Realm = apps.get_model(%22zerver%22, %22Realm%22)%0A    UserGroup = apps.get_model(%22zerver%22, %22UserGroup%22)%0A%0A    for realm in Realm.objects.all():%0A        admins_group = UserGroup.objects.get(%0A            name=%22@role:administrators%22, realm=realm, is_system_group=True%0A        )%0A        Stream.objects.filter(realm=realm, can_remove_subscribers_group=None).update(%0A            can_remove_subscribers_group=admins_group%0A        )%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A    dependencies = %5B%0A        (%22zerver%22, %220408_stream_can_remove_subscribers_group%22),%0A    %5D%0A%0A    operations = %5B%0A        migrations.RunPython(%0A            set_default_value_for_can_remove_subscribers_group,%0A            elidable=True,%0A            reverse_code=migrations.RunPython.noop,%0A        ),%0A    %5D%0A

Add migration to set default of can_remove_subscribers_group.