Skip to content

implement SchemaEditor.add/alter/remove_field() #115

@timgraham

Description

@timgraham

Should these operations try to follow what Django does on SQL backends as much as possible?

For example, if adding a field with a default, Django will populate the default value on existing rows. Should MongoDB do it? If so, what about if there's no value to be populated? Should the field not be added to existing documents? We might be able to do that for nullable fields, but perhaps not for string-based fields where null=False and the default is an empty string.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions