MCPcopy
hub / github.com/django/django / apply_operations

Method apply_operations

tests/migrations/test_base.py:252–256  ·  view source on GitHub ↗
(self, app_label, project_state, operations, atomic=True)

Source from the content-addressed store, hash-verified

250 )
251
252 def apply_operations(self, app_label, project_state, operations, atomic=True):
253 migration = Migration("name", app_label)
254 migration.operations = operations
255 with connection.schema_editor(atomic=atomic) as editor:
256 return migration.apply(project_state, editor)
257
258 def unapply_operations(self, app_label, project_state, operations, atomic=True):
259 migration = Migration("name", app_label)

Calls 3

applyMethod · 0.95
MigrationClass · 0.90
schema_editorMethod · 0.80

Tested by

no test coverage detected