Add migration with fix
This commit is contained in:
@@ -30,4 +30,8 @@ class Migration(migrations.Migration):
|
||||
field=models.SlugField(unique=True),
|
||||
),
|
||||
migrations.RunPython(gen_uuid, reverse_code=migrations.RunPython.noop),
|
||||
# Check if this fixes the database in production, not compliant with sqlite
|
||||
# https://code.djangoproject.com/ticket/25012
|
||||
# migrations.RunSQL('ALTER TABLE webapp_basefeed_tags ALTER tag_id TYPE int ALTER tag_id REFERENCES ("id")'),
|
||||
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user