migrations: Use django.db.backends.postgresql.schema.

This replaces django.db.backends.postgresql_psycopg2, which has been
an alias to django.db.backends.postgresql since Django 1.9.
This commit is contained in:
Tim Abbott 2020-04-26 22:19:08 -07:00
parent 2ff1527be8
commit 69ae4931c3
64 changed files with 64 additions and 64 deletions

View File

@ -1,5 +1,5 @@
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,5 +1,5 @@
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,5 +1,5 @@
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,5 +1,5 @@
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from django.db.models import Count, Sum from django.db.models import Count, Sum

View File

@ -1,5 +1,5 @@
from django.db import connection, migrations from django.db import connection, migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from zerver.lib.migrate import do_batch_update from zerver.lib.migrate import do_batch_update

View File

@ -6,7 +6,7 @@ import django.db.models.deletion
import django.utils.timezone import django.utils.timezone
from django.conf import settings from django.conf import settings
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
import zerver.models import zerver.models

View File

@ -1,7 +1,7 @@
from django.conf import settings from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist from django.core.exceptions import ObjectDoesNotExist
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -3,7 +3,7 @@ from typing import Text
from django.conf import settings from django.conf import settings
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from mock import patch from mock import patch

View File

@ -1,5 +1,5 @@
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,5 +1,5 @@
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from django.db.utils import IntegrityError from django.db.utils import IntegrityError

View File

@ -2,7 +2,7 @@ import os
import re import re
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
attachment_url_re = re.compile(r'[/\-]user[\-_]uploads[/\.-].*?(?=[ )]|\Z)') attachment_url_re = re.compile(r'[/\-]user[\-_]uploads[/\.-].*?(?=[ )]|\Z)')

View File

@ -2,7 +2,7 @@
import django.db.models.deletion import django.db.models.deletion
from django.conf import settings from django.conf import settings
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from django.utils.timezone import now as timezone_now from django.utils.timezone import now as timezone_now

View File

@ -1,6 +1,6 @@
# Generated by Django 1.10.5 on 2017-04-13 22:12 # Generated by Django 1.10.5 on 2017-04-13 22:12
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from django.db.models import Count from django.db.models import Count

View File

@ -1,6 +1,6 @@
# Generated by Django 1.10.5 on 2017-05-10 05:59 # Generated by Django 1.10.5 on 2017-05-10 05:59
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,7 +1,7 @@
# Generated by Django 1.10.5 on 2017-05-02 21:44 # Generated by Django 1.10.5 on 2017-05-02 21:44
import django.core.validators import django.core.validators
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,6 +1,6 @@
# Generated by Django 1.11.2 on 2017-06-20 10:31 # Generated by Django 1.11.2 on 2017-06-20 10:31
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,6 +1,6 @@
# Generated by Django 1.10.5 on 2017-05-10 05:59 # Generated by Django 1.10.5 on 2017-05-10 05:59
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,5 +1,5 @@
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from django.db.models import Max from django.db.models import Max
from django.utils.timezone import now as timezone_now from django.utils.timezone import now as timezone_now

View File

@ -3,7 +3,7 @@ import os
import ujson import ujson
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.4 on 2017-08-30 00:26 # Generated by Django 1.11.4 on 2017-08-30 00:26
import ujson import ujson
from django.db import connection, migrations from django.db import connection, migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,6 +1,6 @@
# Generated by Django 1.11.4 on 2017-08-30 00:26 # Generated by Django 1.11.4 on 2017-08-30 00:26
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from zerver.lib.fix_unreads import fix from zerver.lib.fix_unreads import fix

View File

@ -1,6 +1,6 @@
# Generated by Django 1.11.4 on 2017-08-24 02:39 # Generated by Django 1.11.4 on 2017-08-24 02:39
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,5 +1,5 @@
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,6 +1,6 @@
# Generated by Django 1.11.5 on 2017-10-08 18:37 # Generated by Django 1.11.5 on 2017-10-08 18:37
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -2,7 +2,7 @@
import django.db.models.deletion import django.db.models.deletion
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.6 on 2017-11-30 04:58 # Generated by Django 1.11.6 on 2017-11-30 04:58
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -2,7 +2,7 @@
import django.db.models.deletion import django.db.models.deletion
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,5 +1,5 @@
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,5 +1,5 @@
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.6 on 2018-03-09 18:00 # Generated by Django 1.11.6 on 2018-03-09 18:00
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -2,7 +2,7 @@ from collections import defaultdict
from typing import Any, Dict from typing import Any, Dict
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -4,7 +4,7 @@ import shutil
from boto.s3.connection import S3Connection from boto.s3.connection import S3Connection
from django.conf import settings from django.conf import settings
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.6 on 2018-04-03 01:52 # Generated by Django 1.11.6 on 2018-04-03 01:52
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -2,7 +2,7 @@
from django.conf import settings from django.conf import settings
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.11 on 2018-04-08 15:49 # Generated by Django 1.11.11 on 2018-04-08 15:49
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from django.db.models import F from django.db.models import F

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.13 on 2018-07-05 17:57 # Generated by Django 1.11.13 on 2018-07-05 17:57
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from django.db.models import F from django.db.models import F

View File

@ -1,5 +1,5 @@
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -4,7 +4,7 @@ import sys
import bitfield.models import bitfield.models
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from django.db.models import F from django.db.models import F

View File

@ -1,5 +1,5 @@
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,7 +1,7 @@
import sys import sys
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from django.db.models import F from django.db.models import F

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.14 on 2018-08-28 19:01 # Generated by Django 1.11.14 on 2018-08-28 19:01
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.16 on 2018-12-27 17:09 # Generated by Django 1.11.16 on 2018-12-27 17:09
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,5 +1,5 @@
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from zerver.lib.actions import render_stream_description from zerver.lib.actions import render_stream_description

View File

@ -6,7 +6,7 @@ import ujson
from django.conf import settings from django.conf import settings
from django.contrib.auth.hashers import check_password, make_password from django.contrib.auth.hashers import check_password, make_password
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from django.utils.timezone import now as timezone_now from django.utils.timezone import now as timezone_now

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.18 on 2019-02-25 12:42 # Generated by Django 1.11.18 on 2019-02-25 12:42
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -2,7 +2,7 @@
from django.conf import settings from django.conf import settings
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.20 on 2019-04-29 05:29 # Generated by Django 1.11.20 on 2019-04-29 05:29
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.20 on 2019-05-06 13:15 # Generated by Django 1.11.20 on 2019-05-06 13:15
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.20 on 2019-05-08 05:42 # Generated by Django 1.11.20 on 2019-05-08 05:42
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.18 on 2019-02-13 20:13 # Generated by Django 1.11.18 on 2019-02-13 20:13
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
RECIPIENT_STREAM = 2 RECIPIENT_STREAM = 2

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.14 on 2018-08-10 16:04 # Generated by Django 1.11.14 on 2018-08-10 16:04
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from django.db.models import Case, Value, When from django.db.models import Case, Value, When

View File

@ -3,7 +3,7 @@
from typing import Any, Dict, Optional from typing import Any, Dict, Optional
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
# We include a copy of this structure as it was at the time this # We include a copy of this structure as it was at the time this

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.20 on 2019-05-31 02:33 # Generated by Django 1.11.20 on 2019-05-31 02:33
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -3,7 +3,7 @@
from unicodedata import category from unicodedata import category
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
NAME_INVALID_CHARS = ['*', '`', "\\", '>', '"', '@'] NAME_INVALID_CHARS = ['*', '`', "\\", '>', '"', '@']

View File

@ -1,6 +1,6 @@
from django.conf import settings from django.conf import settings
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -3,7 +3,7 @@
import time import time
from django.db import connection, migrations from django.db import connection, migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from django.db.models import Min from django.db.models import Min

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.24 on 2019-09-23 20:39 # Generated by Django 1.11.24 on 2019-09-23 20:39
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -1,7 +1,7 @@
import time import time
from django.db import connection, migrations from django.db import connection, migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from django.db.models import Min from django.db.models import Min

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.24 on 2019-10-02 16:48 # Generated by Django 1.11.24 on 2019-10-02 16:48
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
INT_VALUE = { INT_VALUE = {

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.24 on 2019-10-03 22:27 # Generated by Django 1.11.24 on 2019-10-03 22:27
from django.db import migrations, models from django.db import migrations, models
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
def update_role(apps: StateApps, schema_editor: DatabaseSchemaEditor) -> None: def update_role(apps: StateApps, schema_editor: DatabaseSchemaEditor) -> None:

View File

@ -4,7 +4,7 @@ import time
import lxml import lxml
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
BATCH_SIZE = 1000 BATCH_SIZE = 1000

View File

@ -1,6 +1,6 @@
from django.core.exceptions import ObjectDoesNotExist from django.core.exceptions import ObjectDoesNotExist
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
# Imported to avoid needing to duplicate redis-related code. # Imported to avoid needing to duplicate redis-related code.

View File

@ -1,7 +1,7 @@
# Generated by Django 1.11.26 on 2020-01-25 23:47 # Generated by Django 1.11.26 on 2020-01-25 23:47
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps

View File

@ -3,7 +3,7 @@ from __future__ import unicode_literals
from django.conf import settings from django.conf import settings
from django.db import migrations from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps from django.db.migrations.state import StateApps
from typing import Any from typing import Any