mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
		
			1001 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1001 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()
 | |
| 
 | |
|     Installs the ``hstore`` extension and also sets up the connection to
 | |
|     interpret hstore data for possible use in subsequent migrations.
 | |
| 
 | |
| ``TrigramExtension``
 | |
| ====================
 | |
| 
 | |
| .. class:: TrigramExtension()
 | |
| 
 | |
|     .. versionadded:: 1.10
 | |
| 
 | |
|     Installs the ``pg_trgm`` extension.
 | |
| 
 | |
| ``UnaccentExtension``
 | |
| =====================
 | |
| 
 | |
| .. class:: UnaccentExtension()
 | |
| 
 | |
|     Installs the ``unaccent`` extension.
 |