try to fix migrations
This commit is contained in:
parent
530cfc44be
commit
be397a23e2
|
|
@ -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'),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user