#36779: DeleteModel can lead to missing FK constraints
--------------------------------+--------------------------------------
     Reporter:  Jamie Cockburn  |                    Owner:  Vishy Algo
         Type:  Bug             |                   Status:  assigned
    Component:  Migrations      |                  Version:  6.0
     Severity:  Normal          |               Resolution:
     Keywords:                  |             Triage Stage:  Accepted
    Has patch:  1               |      Needs documentation:  0
  Needs tests:  0               |  Patch needs improvement:  1
Easy pickings:  0               |                    UI/UX:  0
--------------------------------+--------------------------------------
Comment (by Vishy Algo):

 Apologies for the oversight! You’re absolutely right. I was seeing SQLite
 errors in the migration test suite because
 {{{test_base.cleanup_test_tables}}} calls {{{sql_delete_table_cascade}}}
 directly. Since I had only defined that in the base editor with the
 CASCADE keyword, resulting in SQLite syntax errors.

 I thought feature flag would be helpful to solve the discrepancy, ignoring
 that simply overriding {{{sql_delete_table_cascade}}} attribute in
 sqlite3/schema.py is much cleaner.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36779#comment:10>
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 visit 
https://groups.google.com/d/msgid/django-updates/0107019b5e4e6490-a69231f0-1ed0-4262-aacb-49cfd45a0112-000000%40eu-central-1.amazonses.com.

Reply via email to