mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Moved SQLite DatabaseSchemaEditor.add_field()'s comment to the correct line.
This commit is contained in:
parent
1586a09b79
commit
59262c294d
@ -389,11 +389,10 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
|
||||
# ADD COLUMN.
|
||||
field.primary_key
|
||||
or field.unique
|
||||
or
|
||||
or not field.null
|
||||
# Fields with default values cannot by handled by ALTER TABLE ADD
|
||||
# COLUMN statement because DROP DEFAULT is not supported in
|
||||
# ALTER TABLE.
|
||||
not field.null
|
||||
or self.effective_default(field) is not None
|
||||
):
|
||||
self._remake_table(model, create_field=field)
|
||||
|
Loading…
Reference in New Issue
Block a user