MCPcopy
hub / github.com/django/django / database_forwards

Method database_forwards

django/contrib/postgres/operations.py:224–229  ·  view source on GitHub ↗
(self, app_label, schema_editor, from_state, to_state)

Source from the content-addressed store, hash-verified

222 category = OperationCategory.ADDITION
223
224 def database_forwards(self, app_label, schema_editor, from_state, to_state):
225 if schema_editor.connection.vendor != "postgresql" or not router.allow_migrate(
226 schema_editor.connection.alias, app_label
227 ):
228 return
229 self.create_collation(schema_editor)
230
231 def database_backwards(self, app_label, schema_editor, from_state, to_state):
232 if not router.allow_migrate(schema_editor.connection.alias, app_label):

Calls 2

create_collationMethod · 0.80
allow_migrateMethod · 0.45