mirror of
https://github.com/django/django.git
synced 2024-12-27 03:25:58 +00:00
36f514f065
Thanks to `django-hstore` for inspiration in some areas, and many people for reviews.
28 lines
751 B
Plaintext
28 lines
751 B
Plaintext
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.
|