BaseDatabaseSchemaEditor.alter_db_table(model, old_db_table, new_db_table) [source] Renames
SchemaEditor.connection A connection object to the database. A useful attribute of the connection is alias which
BaseDatabaseSchemaEditor.alter_field(model, old_field, new_field, strict=False) [source] This
BaseDatabaseSchemaEditor.alter_unique_together(model, old_unique_together, new_unique_together) [source]
BaseDatabaseSchemaEditor.execute(sql, params=[]) [source] Executes the SQL statement passed
BaseDatabaseSchemaEditor.alter_db_tablespace(model, old_db_tablespace, new_db_tablespace) [source] Moves
BaseDatabaseSchemaEditor.remove_field(model, field) [source] Removes the column(s) representing
BaseDatabaseSchemaEditor.add_field(model, field) [source] Adds a column (or sometimes multiple)
BaseDatabaseSchemaEditor.create_model(model) [source] Creates a new table in the database
BaseDatabaseSchemaEditor.delete_model(model) [source] Drops the model’s table in the database
Page 1 of 2