#35006: migrate crashes with db_table_comment added to existing model on SQLite
-----------------------------------+------------------------------------
Reporter: Юрий | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: dev
Severity: Release blocker | Resolution:
Keywords: sqlite migrations | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Comment (by David Sanders):
The simple fix is to add the `supports_comments` condition to
`AlterModelTableComment.database_forwards()` [1]
A better solution may be to use hooks like we've been doing recently so
that the "supports" decision is centralised and won't be inadvertently
left out anywhere.
[1]https://github.com/django/django/blob/main/django/db/migrations/operations/models.py#L581
--
Ticket URL: <https://code.djangoproject.com/ticket/35006#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018c1f4decee-3a81b3bf-6275-4028-9fd5-9ccc710302a4-000000%40eu-central-1.amazonses.com.