#1082 closed defect (fixed)
magic-removal branch: SQLite does not support ALTER TABLE n ADD CONSTRAINT
| Reported by: | anonymous | Owned by: | Adrian Holovaty |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | magic-removal |
| Severity: | normal | Keywords: | sqlite magic-removal |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
SQLite does not support ALTER TABLE n ADD CONSTRAINT ..., which seems to have appeared in the magic-removal branch. This causes django-admin.py install to fail.
Attachments (1)
Change History (5)
comment:1 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:2 by , 20 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
| Version: | SVN → magic-removal |
This problem still exists when the constraints are to be dropped (sqlreset and reset). Attaching a patch…
by , 20 years ago
| Attachment: | django1082_2.diff added |
|---|
Only drop constraints if backend supports_contraints
comment:3 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
Note:
See TracTickets
for help on using tickets.
(In [1757]) magic-removal: Fixed #1082 -- Added a 'supports_constraints' variable for each database backend, and set SQLite's to False