Database migration operations

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]

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

UnaccentExtension

class UnaccentExtension [source]

A subclass of CreateExtension which will install the unaccent extension.

© Django Software Foundation and individual contributors
Licensed under the BSD License.
https://docs.djangoproject.com/en/1.9/ref/contrib/postgres/operations/

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部