#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: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Comment (by Vishy Algo):
So, removing the CASCADE in
''django/db/backends/base/schema.py'' :
{{{#!diff
class BaseDatabaseSchemaEditor:
+ sql_delete_table = "DROP TABLE %(table)s CASCADE"
- sql_delete_table = "DROP TABLE %(table)s"
}}}
, would cause the migration to fail with an integrity-related database
error, preventing the migration from completing successfully.
Hence, removing the divergence happening in the ProjectState object.
--
Ticket URL: <https://code.djangoproject.com/ticket/36779#comment:4>
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/0107019b064150f9-e6e73df4-17cf-4f3a-a67d-9c609f4de8b0-000000%40eu-central-1.amazonses.com.