mirror of
https://github.com/django/django.git
synced 2025-12-15 21:45:20 +00:00
Fixed #23738 -- Allowed migrating from NULL to NOT NULL with the same default value
Thanks to Andrey Antukh for the report.
This commit is contained in:
parent
ed2f96819c
commit
715ccfde24
4 changed files with 38 additions and 2 deletions
|
|
@ -17,6 +17,14 @@ class Author(models.Model):
|
|||
apps = new_apps
|
||||
|
||||
|
||||
class AuthorWithDefaultHeight(models.Model):
|
||||
name = models.CharField(max_length=255)
|
||||
height = models.PositiveIntegerField(null=True, blank=True, default=42)
|
||||
|
||||
class Meta:
|
||||
apps = new_apps
|
||||
|
||||
|
||||
class AuthorWithM2M(models.Model):
|
||||
name = models.CharField(max_length=255)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue