Improve types in DB backend schema modules
#2124
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have made things!
While I was modifying the value for
Anyyou mentioned in the PR #2123, I also modified the other functions the same because they looked the same code.This list is a modification of argument for field, model, index.
django.db.backends.base.schema.BaseDatabaseSchemaEditordjango.db.backends.base.schema.BaseDatabaseSchemaEditor.skip_defaultdjango.db.backends.base.schema.BaseDatabaseSchemaEditor.skip_default_on_alterdjango.db.backends.base.schema.BaseDatabaseSchemaEditor.alter_db_table_commentdjango.db.backends.base.schema.BaseDatabaseSchemaEditor.alter_db_tablespacedjango.db.backends.base.schema.BaseDatabaseSchemaEditor.add_fielddjango.db.backends.base.schema.BaseDatabaseSchemaEditor.remove_fielddjango.db.backends.mysql.schema.DatabaseSchemaEditordjango.db.backends.mysql.schema.DatabaseSchemaEditor.skip_defaultsdjango.db.backends.mysql.schema.DatabaseSchemaEditor.add_fielddjango.db.backends.oracle.schema.DatabaseSchemaEditordjango.db.backends.oracle.schema.DatabaseSchemaEditor.remove_fielddjango.db.backends.oracle.schema.DatabaseSchemaEditor.delete_modeldjango.db.backends.oracle.schema.DatabaseSchemaEditor.alter_fielddjango.db.backends.postgresql.schema.DatabaseSchemaEditordjango.db.backends.postgresql.schema.DatabaseSchemaEditor.add_indexdjango.db.backends.postgresql.schema.DatabaseSchemaEditor.remove_indexdjango.contrib.gis.db.backends.mysql.schema. MySQLGISSchemaEditordjango.contrib.gis.db.backends.mysql.schema.MySQLGISSchemaEditor.skip_defaultdjango.contrib.gis.db.backends.mysql.schema.MySQLGISSchemaEditor.column_sqldjango.contrib.gis.db.backends.mysql.schema.MySQLGISSchemaEditor.create_modeldjango.contrib.gis.db.backends.mysql.schema.MySQLGISSchemaEditor.add_fielddjango.contrib.gis.db.backends.mysql.schema.MySQLGISSchemaEditor.remove_fielddjango.contrib.gis.db.backends.oracle.schema.OracleGISSchemaEditordjango.contrib.gis.db.backends.oracle.schema.OracleGISSchemaEditor.column_sqldjango.contrib.gis.db.backends.oracle.schema.OracleGISSchemaEditor.create_modeldjango.contrib.gis.db.backends.oracle.schema.OracleGISSchemaEditor.delete_modeldjango.contrib.gis.db.backends.oracle.schema.OracleGISSchemaEditor.add_fielddjango.contrib.gis.db.backends.oracle.schema.OracleGISSchemaEditor.remove_fielddjango.contrib.gis.db.backends.sqlatialite.schema.SpatialiteSchemaEditordjango.contrib.gis.db.backends.sqlatialite.schema.SpatialiteSchemaEditor.column_sqldjango.contrib.gis.db.backends.sqlatialite.schema.SpatialiteSchemaEditor.remove_geometry_metadatadjango.contrib.gis.db.backends.sqlatialite.schema.SpatialiteSchemaEditor.create_modeldjango.contrib.gis.db.backends.sqlatialite.schema.SpatialiteSchemaEditor.delete_modeldjango.contrib.gis.db.backends.sqlatialite.schema.SpatialiteSchemaEditor.add_fielddjango.contrib.gis.db.backends.sqlatialite.schema.SpatialiteSchemaEditor.remove_fielddjango.contrib.gis.db.backends.sqlatialite.schema.SpatialiteSchemaEditor.alter_db_tableThis list is a correction to the removal of None.
django.db.backends.base.schema.BaseDatabaseSchemaEditor.alter_db_table_comment'sold_db_table_commentargumentThis list is a variation of the type of str.
django.contrib.gis.db.backends.sqlatialite.schema.SpatialiteSchemaEditor.alter_db_tablesold_db_tableargumentdjango.contrib.gis.db.backends.sqlatialite.schema.SpatialiteSchemaEditor.alter_db_tablesnew_db_tableargumentdjango.db.backends.base.schema.BaseDatabaseSchemaEditor.alter_db_tablespacesold_db_tablespaceargumentdjango.db.backends.base.schema.BaseDatabaseSchemaEditor.alter_db_tablespacesnew_db_tablespaceargumentRelated issues
Related PR
django.contrib.gis.db.backends.sqatialite.schema#2123