SchemaEditor
SchemaEditor
-
class BaseDatabaseSchemaEditor
[source]
Django’s migration system is split into two parts; the logic for calculating and storing what operations should be run (django.db.migrations
), and the database abstraction layer that turns things like “create a model” or “delete a field” into SQL - which is the job of the SchemaEditor
.
It’s unlikely that you will want to interact directly with SchemaEditor
as a normal developer using Django, but if you want to write your own migration system, or have more advanced needs, it’s a lot nicer