Django

Code

Ticket #1082 (closed: fixed)

Opened 3 years ago

Last modified 2 years ago

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

Reported by: anonymous Assigned to: adrian
Milestone: Component: Database layer (models, ORM)
Version: magic-removal Keywords: sqlite magic-removal
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

django1082_2.diff (0.6 kB) - added by Christopher Lenz <cmlenz@gmx.de> on 02/09/06 07:40:27.
Only drop constraints if backend supports_contraints

Change History

12/20/05 20:58:21 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

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

02/09/06 07:39:49 changed by Christopher Lenz <cmlenz@gmx.de>

  • status changed from closed to reopened.
  • version changed from SVN to magic-removal.
  • resolution deleted.

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

02/09/06 07:40:27 changed by Christopher Lenz <cmlenz@gmx.de>

  • attachment django1082_2.diff added.

Only drop constraints if backend supports_contraints

02/09/06 23:12:44 changed by adrian

  • status changed from reopened to closed.
  • resolution set to fixed.

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

01/17/07 16:12:17 changed by

  • milestone deleted.

Milestone Version 1.0 deleted


Add/Change #1082 (magic-removal branch: SQLite does not support ALTER TABLE n ADD CONSTRAINT)




Change Properties
Action