diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py index 4f7abf5bef..1e6563a5b5 100644 --- a/django/db/backends/mysql/base.py +++ b/django/db/backends/mysql/base.py @@ -286,13 +286,6 @@ class DatabaseWrapper(BaseDatabaseWrapper): `disable_constraint_checking()` and `enable_constraint_checking()`, to determine if rows with invalid references were entered while constraint checks were off. - - Raise an IntegrityError on the first invalid foreign key reference - encountered (if any) and provide detailed information about the - invalid reference in the error message. - - Backends can override this method if they can more directly apply - constraint checking (e.g. via "SET CONSTRAINTS ALL IMMEDIATE") """ with self.cursor() as cursor: if table_names is None: diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index 0971c500dd..996ec1e09b 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -227,13 +227,6 @@ class DatabaseWrapper(BaseDatabaseWrapper): `disable_constraint_checking()` and `enable_constraint_checking()`, to determine if rows with invalid references were entered while constraint checks were off. - - Raise an IntegrityError on the first invalid foreign key reference - encountered (if any) and provide detailed information about the - invalid reference in the error message. - - Backends can override this method if they can more directly apply - constraint checking (e.g. via "SET CONSTRAINTS ALL IMMEDIATE") """ with self.cursor() as cursor: if table_names is None: