Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#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)

django1082_2.diff (653 bytes ) - added by Christopher Lenz <cmlenz@…> 18 years ago.
Only drop constraints if backend supports_contraints

Download all attachments as: .zip

Change History (5)

comment:1 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

(In [1757]) magic-removal: Fixed #1082 -- Added a 'supports_constraints' variable for each database backend, and set SQLite's to False

comment:2 by Christopher Lenz <cmlenz@…>, 18 years ago

Resolution: fixed
Status: closedreopened
Version: SVNmagic-removal

This problem still exists when the constraints are to be dropped (sqlreset and reset). Attaching a patch…

by Christopher Lenz <cmlenz@…>, 18 years ago

Attachment: django1082_2.diff added

Only drop constraints if backend supports_contraints

comment:3 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: reopenedclosed

(In [2296]) magic-removal: Fixed #1082 -- Fixed bug in sqlreset and reset with SQLite. Thanks, Christopher Lenz

comment:4 by (none), 17 years ago

milestone: Version 1.0

Milestone Version 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top