class CreateExtension(Operation): (source)
Known subclasses: django.contrib.postgres.operations.BloomExtension
, django.contrib.postgres.operations.BtreeGinExtension
, django.contrib.postgres.operations.BtreeGistExtension
, django.contrib.postgres.operations.CITextExtension
, django.contrib.postgres.operations.CryptoExtension
, django.contrib.postgres.operations.HStoreExtension
, django.contrib.postgres.operations.TrigramExtension
, django.contrib.postgres.operations.UnaccentExtension
Undocumented
Method | __init__ |
Undocumented |
Method | database |
Perform the mutation on the database schema in the reverse direction - e.g. if this were CreateModel, it would in fact drop the model's table. |
Method | database |
Perform the mutation on the database schema in the normal (forwards) direction. |
Method | describe |
Output a brief summary of what the action does. |
Method | extension |
Undocumented |
Method | state |
Take the state from the previous migration, and mutate it so that it matches what this migration would perform. |
Class Variable | reversible |
Undocumented |
Instance Variable | name |
Undocumented |
Property | migration |
A filename part suitable for automatically naming a migration containing this operation, or None if not applicable. |
Inherited from Operation
:
Method | __new__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | allow |
Return whether or not a model may be migrated. |
Method | deconstruct |
Return a 3-tuple of class import path (or just name if it lives under django.db.migrations), positional arguments, and keyword arguments. |
Method | reduce |
Return either a list of operations the actual operation should be replaced with or a boolean that indicates whether or not the specified operation can be optimized across. |
Method | references |
Return True if there is a chance this operation references the given field name, with an app label for accuracy. |
Method | references |
Return True if there is a chance this operation references the given model name (as a string), with an app label for accuracy. |
Class Variable | atomic |
Undocumented |
Class Variable | elidable |
Undocumented |
Class Variable | reduces |
Undocumented |
Class Variable | serialization |
Undocumented |
Instance Variable | _constructor |
Undocumented |
django.contrib.postgres.operations.BloomExtension
, django.contrib.postgres.operations.BtreeGinExtension
, django.contrib.postgres.operations.BtreeGistExtension
, django.contrib.postgres.operations.CITextExtension
, django.contrib.postgres.operations.CryptoExtension
, django.contrib.postgres.operations.HStoreExtension
, django.contrib.postgres.operations.TrigramExtension
, django.contrib.postgres.operations.UnaccentExtension
Undocumented
Perform the mutation on the database schema in the reverse direction - e.g. if this were CreateModel, it would in fact drop the model's table.
Take the state from the previous migration, and mutate it so that it matches what this migration would perform.
django.contrib.postgres.operations.BloomExtension
, django.contrib.postgres.operations.BtreeGinExtension
, django.contrib.postgres.operations.BtreeGistExtension
, django.contrib.postgres.operations.CITextExtension
, django.contrib.postgres.operations.CryptoExtension
, django.contrib.postgres.operations.HStoreExtension
, django.contrib.postgres.operations.TrigramExtension
, django.contrib.postgres.operations.UnaccentExtension
Undocumented