Database migration operations
All of these operations are available from
the django.contrib.postgres.operations module.
CreateExtension
-
class
CreateExtension(name)[source]
An Operation subclass which installs PostgreSQL extensions.
-
name
This is a required argument. The name of the extension to be installed.
HStoreExtension
-
class
HStoreExtension[source]
Installs the hstore extension and also sets up the connection to
interpret hstore data for possible use in subsequent migrations.
TrigramExtension
-
class
TrigramExtension[source]
New in Django 1.10.
Installs the pg_trgm extension.
UnaccentExtension
-
class
UnaccentExtension[source]
Installs the unaccent extension.