#30664: SQLite3 migrations can fail when used quoted db_table.
-------------------------------------+-------------------------------------
Reporter: Maciej Olko | Owner: Ngalim
| Siregar
Type: Bug | Status: assigned
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: quoted, db_table, | Triage Stage: Accepted
meta, model, sqlite3, syntax- |
error |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):
* needs_better_patch: 0 => 1
Comment:
Patch is targeting model names containing quotes while the changes should
live in `_remake_table` as pointed out by Mariusz.
@Ngalim you'll want to change
[https://github.com/django/django/blob/3c6d32e0b233bc44eb4533f81819353036ae35e4/django/db/backends/sqlite3/schema.py#L266
this line] to perform `.strip('"')` to strip possibly leading and trailing
`"`.
--
Ticket URL: <https://code.djangoproject.com/ticket/30664#comment:5>
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/065.0720155944b085ea10257ca2fa663165%40djangoproject.com.