{"title":"Database migration operations","version":"1.9","locale":"ja","docname":"ref/contrib/postgres/operations","url":"/ja/1.9/ref/contrib/postgres/operations/","canonical":"https://djangodocs.dev/ja/1.9/ref/contrib/postgres/operations/","summary":"All of these operations are available from the django.contrib.postgres.operations module.","html":"<h1>Database migration operations<a class=\"heading-anchor\" href=\"#database-migration-operations\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p>All of these <a class=\"reference internal\" href=\"/ja/1.9/ref/migration-operations/\"><span class=\"doc\">operations</span></a> are available from\nthe <code class=\"docutils literal notranslate\">django.contrib.postgres.operations</code> module.</p>\n<section id=\"createextension\">\n<h2><code class=\"docutils literal notranslate\">CreateExtension</code><a class=\"heading-anchor\" href=\"#createextension\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<dl class=\"py class\">\n<dt class=\"sig sig-object py\" id=\"django.contrib.postgres.operations.CreateExtension\">\n<em class=\"property\"><span class=\"k\">class</span> </em><span class=\"sig-name descname\">CreateExtension</span><span class=\"sig-paren\">(</span><em class=\"sig-param\">name</em><span class=\"sig-paren\">)</span><a class=\"heading-anchor\" href=\"#django.contrib.postgres.operations.CreateExtension\"><span class=\"visually-hidden\">Link to this definition</span><span aria-hidden=\"true\">#</span></a></dt>\n<dd><p>An <code class=\"docutils literal notranslate\">Operation</code> subclass which installs PostgreSQL extensions.</p>\n<dl class=\"py attribute\">\n<dt class=\"sig sig-object py\" id=\"django.contrib.postgres.operations.CreateExtension.name\">\n<span class=\"sig-name descname\">name</span><a class=\"heading-anchor\" href=\"#django.contrib.postgres.operations.CreateExtension.name\"><span class=\"visually-hidden\">Link to this definition</span><span aria-hidden=\"true\">#</span></a></dt>\n<dd><p>This is a required argument. The name of the extension to be installed.</p>\n</dd></dl>\n\n</dd></dl>\n\n</section>\n<section id=\"hstoreextension\">\n<h2><code class=\"docutils literal notranslate\">HStoreExtension</code><a class=\"heading-anchor\" href=\"#hstoreextension\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<dl class=\"py class\">\n<dt class=\"sig sig-object py\" id=\"django.contrib.postgres.operations.HStoreExtension\">\n<em class=\"property\"><span class=\"k\">class</span> </em><span class=\"sig-name descname\">HStoreExtension</span><a class=\"heading-anchor\" href=\"#django.contrib.postgres.operations.HStoreExtension\"><span class=\"visually-hidden\">Link to this definition</span><span aria-hidden=\"true\">#</span></a></dt>\n<dd><p>A subclass of <a class=\"reference internal\" href=\"#django.contrib.postgres.operations.CreateExtension\" title=\"django.contrib.postgres.operations.CreateExtension\"><code class=\"xref py py-class docutils literal notranslate\">CreateExtension</code></a>\nwhich will install the <code class=\"docutils literal notranslate\">hstore</code> extension and also immediately set up the\nconnection to interpret hstore data.</p>\n</dd></dl>\n\n</section>\n<section id=\"unaccentextension\">\n<h2><code class=\"docutils literal notranslate\">UnaccentExtension</code><a class=\"heading-anchor\" href=\"#unaccentextension\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<dl class=\"py class\">\n<dt class=\"sig sig-object py\" id=\"django.contrib.postgres.operations.UnaccentExtension\">\n<em class=\"property\"><span class=\"k\">class</span> </em><span class=\"sig-name descname\">UnaccentExtension</span><a class=\"heading-anchor\" href=\"#django.contrib.postgres.operations.UnaccentExtension\"><span class=\"visually-hidden\">Link to this definition</span><span aria-hidden=\"true\">#</span></a></dt>\n<dd><p>A subclass of <a class=\"reference internal\" href=\"#django.contrib.postgres.operations.CreateExtension\" title=\"django.contrib.postgres.operations.CreateExtension\"><code class=\"xref py py-class docutils literal notranslate\">CreateExtension</code></a>\nwhich will install the <code class=\"docutils literal notranslate\">unaccent</code> extension.</p>\n</dd></dl>\n\n</section>","rootId":"database-migration-operations","toc":[{"title":"CreateExtension","anchor":"createextension","children":[]},{"title":"HStoreExtension","anchor":"hstoreextension","children":[]},{"title":"UnaccentExtension","anchor":"unaccentextension","children":[]}],"breadcrumbs":[{"docname":"ref/index","title":"API Reference","url":"/ja/1.9/ref/"},{"docname":"ref/contrib/index","title":"contrib packages","url":"/ja/1.9/ref/contrib/"},{"docname":"ref/contrib/postgres/index","title":"django.contrib.postgres","url":"/ja/1.9/ref/contrib/postgres/"}],"prev":{"docname":"ref/contrib/postgres/lookups","title":"PostgreSQL specific lookups","url":"/ja/1.9/ref/contrib/postgres/lookups/"},"next":{"docname":"ref/contrib/postgres/validators","title":"Validators","url":"/ja/1.9/ref/contrib/postgres/validators/"},"formats":{"html":"/ja/1.9/ref/contrib/postgres/operations/","markdown":"/ja/1.9/ref/contrib/postgres/operations.md","json":"/ja/1.9/ref/contrib/postgres/operations.json"},"source":"https://github.com/django/django/blob/stable/1.9.x/docs/ref/contrib/postgres/operations.txt","official":"https://docs.djangoproject.com/ja/1.9/ref/contrib/postgres/operations/","inVersions":["6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1","3.0","2.2","2.1","2.0","1.11","1.10","1.9"],"inLocales":["en","fr","ja","id","pt-br","es"]}