try to fix migrations

This commit is contained in:
Kuroshini 2020-02-10 16:57:58 +03:00
parent 530cfc44be
commit be397a23e2

View File

@ -2,6 +2,7 @@
import django.contrib.postgres.indexes import django.contrib.postgres.indexes
from django.db import migrations from django.db import migrations
from django.contrib.postgres.operations import TrigramExtension, BtreeGinExtension
class Migration(migrations.Migration): class Migration(migrations.Migration):
@ -11,6 +12,8 @@ class Migration(migrations.Migration):
] ]
operations = [ operations = [
BtreeGinExtension(),
TrigramExtension(),
migrations.AddIndex( migrations.AddIndex(
model_name='user', model_name='user',
index=django.contrib.postgres.indexes.GinIndex(fields=['username'], name='account_use_usernam_20b96d_gin'), index=django.contrib.postgres.indexes.GinIndex(fields=['username'], name='account_use_usernam_20b96d_gin'),