fix: migration with duplicate renaming of columns in some cases (#395)
* fix: migration with duplicate renaming of columns in some cases * Update var name * fix downgrade sql error * fix test error * docs: update changelog * Add unittest * Move not change line to origin position * Update sort key to make it more frieldly interactive from multi fields rename * refactor: remove puzzle vars * docs: fix PR links in changelog * fix sort key lambda error
This commit is contained in:
@@ -81,6 +81,7 @@ class Product(Model):
|
||||
pic = fields.CharField(max_length=200)
|
||||
body = fields.TextField()
|
||||
created_at = fields.DatetimeField(auto_now_add=True)
|
||||
is_deleted = fields.BooleanField(default=False)
|
||||
|
||||
class Meta:
|
||||
unique_together = (("name", "type"),)
|
||||
|
||||
Reference in New Issue
Block a user