diff --git a/django/contrib/postgres/operations.py b/django/contrib/postgres/operations.py index 951c82cfca1..cb45d4f705e 100644 --- a/django/contrib/postgres/operations.py +++ b/django/contrib/postgres/operations.py @@ -23,6 +23,12 @@ class CreateExtension(Operation): return "Creates extension %s" % self.name +class BtreeGinExtension(CreateExtension): + + def __init__(self): + self.name = 'btree_gin' + + class CITextExtension(CreateExtension): def __init__(self): @@ -42,19 +48,13 @@ class HStoreExtension(CreateExtension): register_hstore_handler(schema_editor.connection) -class UnaccentExtension(CreateExtension): - - def __init__(self): - self.name = 'unaccent' - - class TrigramExtension(CreateExtension): def __init__(self): self.name = 'pg_trgm' -class BtreeGinExtension(CreateExtension): +class UnaccentExtension(CreateExtension): def __init__(self): - self.name = 'btree_gin' + self.name = 'unaccent'