Database migration operationsLink to this heading

All of these operations are available from the django.contrib.postgres.operations module.

CreateExtensionLink to this heading

class CreateExtension(name)Link to this definition

An Operation subclass which installs PostgreSQL extensions.

nameLink to this definition

This is a required argument. The name of the extension to be installed.

HStoreExtensionLink to this heading

class HStoreExtensionLink to this definition

A subclass of CreateExtension which will install the hstore extension and also immediately set up the connection to interpret hstore data.

UnaccentExtensionLink to this heading

class UnaccentExtensionLink to this definition

A subclass of CreateExtension which will install the unaccent extension.