Sophie

Sophie

distrib > Mageia > 6 > i586 > by-pkgid > 65530c6176058f9b54858c3b4f6385e6 > files > 324

python-django-doc-1.8.19-1.mga6.noarch.rpm

Database migration operations
=============================

All of these :doc:`operations </ref/migration-operations>` are available from
the ``django.contrib.postgres.operations`` module.

.. currentmodule:: django.contrib.postgres.operations

CreateExtension
---------------

.. class:: CreateExtension(name)

    An ``Operation`` subclass which installs PostgreSQL extensions.

    .. attribute:: name

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

HStoreExtension
---------------

.. class:: HStoreExtension()

    A subclass of :class:`~django.contrib.postgres.operations.CreateExtension`
    which will install the ``hstore`` extension and also immediately set up the
    connection to interpret hstore data.

UnaccentExtension
-----------------

.. class:: UnaccentExtension()

    A subclass of :class:`~django.contrib.postgres.operations.CreateExtension`
    which will install the ``unaccent`` extension.