mirror of
https://github.com/zulip/zulip.git
synced 2025-10-28 18:43:52 +00:00
typing: Use BaseDatabaseSchemaEditor in place of DatabaseSchemaEditor.
This is a part of #18777. Signed-off-by: Zixuan James Li <359101898@qq.com>
This commit is contained in:
committed by
Tim Abbott
parent
63e9ae8389
commit
d5517932cd
@@ -1,10 +1,10 @@
|
||||
# Generated by Django 1.11.4 on 2017-08-24 02:39
|
||||
from django.db import migrations
|
||||
from django.db.backends.postgresql.schema import DatabaseSchemaEditor
|
||||
from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor
|
||||
from django.db.migrations.state import StateApps
|
||||
|
||||
|
||||
def fix_realm_string_ids(apps: StateApps, schema_editor: DatabaseSchemaEditor) -> None:
|
||||
def fix_realm_string_ids(apps: StateApps, schema_editor: BaseDatabaseSchemaEditor) -> None:
|
||||
Realm = apps.get_model("zerver", "Realm")
|
||||
if Realm.objects.filter(deactivated=False).count() != 2:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user