SchemaEditor.connection A connection object to the database. A useful attribute of the connection is alias which
BaseDatabaseSchemaEditor.alter_db_table(model, old_db_table, new_db_table) [source] Renames
BaseDatabaseSchemaEditor.alter_unique_together(model, old_unique_together, new_unique_together) [source]
BaseDatabaseSchemaEditor.alter_field(model, old_field, new_field, strict=False) [source] This
BaseDatabaseSchemaEditor.execute(sql, params=[]) [source] Executes the SQL statement passed
BaseDatabaseSchemaEditor.alter_db_tablespace(model, old_db_tablespace, new_db_tablespace) [source] Moves
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.remove_field(model, field) [source] Removes the column(s) representing
BaseDatabaseSchemaEditor.alter_index_together(model, old_index_together, new_index_together) [source]
Page 1 of 2