db.migrations.operations.AddField
  • References/Python/Django/API/Migration Operations

class AddField(model_name, name, field, preserve_default=True) [source] Adds a field to a

2025-01-10 15:47:30
db.migrations.operations.CreateModel
  • References/Python/Django/API/Migration Operations

class CreateModel(name, fields, options=None, bases=None, managers=None) [source] Creates

2025-01-10 15:47:30
db.migrations.operations.AlterOrderWithRespectTo
  • References/Python/Django/API/Migration Operations

class AlterOrderWithRespectTo(name, order_with_respect_to) [source] Makes or deletes the

2025-01-10 15:47:30
db.migrations.operations.AlterModelTable
  • References/Python/Django/API/Migration Operations

class AlterModelTable(name, table) [source] Changes the model’s table name (the

2025-01-10 15:47:30
db.migrations.operations.AlterModelManagers
  • References/Python/Django/API/Migration Operations

class AlterModelManagers(name, managers) [source] Alters the managers that are available

2025-01-10 15:47:30
db.migrations.operations.AlterModelOptions
  • References/Python/Django/API/Migration Operations

class AlterModelOptions(name, options) [source] Stores changes to miscellaneous model options

2025-01-10 15:47:30
db.migrations.operations.SeparateDatabaseAndState
  • References/Python/Django/API/Migration Operations

class SeparateDatabaseAndState(database_operations=None, state_operations=None) [source] A

2025-01-10 15:47:30
db.migrations.operations.RunSQL.noop
  • References/Python/Django/API/Migration Operations

RunSQL.noop Pass the RunSQL.noop attribute to sql or reverse_sql when you want the operation

2025-01-10 15:47:30
db.migrations.operations.AlterUniqueTogether
  • References/Python/Django/API/Migration Operations

class AlterUniqueTogether(name, unique_together) [source] Changes the model’s set of unique

2025-01-10 15:47:30
db.migrations.operations.AlterField
  • References/Python/Django/API/Migration Operations

class AlterField(model_name, name, field, preserve_default=True) [source] Alters a field’s

2025-01-10 15:47:30