MCPcopy
hub / github.com/django/django / database_backwards

Method database_backwards

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

Source from the content-addressed store, hash-verified

259 self.remove_collation(schema_editor)
260
261 def database_backwards(self, app_label, schema_editor, from_state, to_state):
262 if not router.allow_migrate(schema_editor.connection.alias, app_label):
263 return
264 self.create_collation(schema_editor)
265
266 def describe(self):
267 return f"Remove collation {self.name}"

Callers 2

test_no_allow_migrateMethod · 0.95
test_removeMethod · 0.95

Calls 2

create_collationMethod · 0.80
allow_migrateMethod · 0.45

Tested by 2

test_no_allow_migrateMethod · 0.76
test_removeMethod · 0.76