Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#1082 closed defect (fixed)

magic-removal branch: SQLite does not support ALTER TABLE n ADD CONSTRAINT

Reported by: anonymous Owned by: adrian
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: UI/UX:

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@…> 9 years ago.
Only drop constraints if backend supports_contraints

Download all attachments as: .zip

Change History (5)

comment:1 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:2 Changed 9 years ago by Christopher Lenz <cmlenz@…>

  • Resolution fixed deleted
  • Status changed from closed to reopened
  • Version changed from SVN to magic-removal

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

Changed 9 years ago by Christopher Lenz <cmlenz@…>

Only drop constraints if backend supports_contraints

comment:3 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from reopened to closed

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

comment:4 Changed 8 years ago by anonymous

  • milestone Version 1.0 deleted

Milestone Version 1.0 deleted

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