mirror of
https://github.com/django/django.git
synced 2025-10-01 14:31:19 +00:00
[1.8.x] Removed unused foreign_key_re variables in MySQL/Oracle DB backends
Backport of e9282747a4
from master
This commit is contained in:
parent
5068a51d88
commit
4abadc4872
2 changed files with 0 additions and 7 deletions
|
@ -1,4 +1,3 @@
|
|||
import re
|
||||
from collections import namedtuple
|
||||
|
||||
from MySQLdb.constants import FIELD_TYPE
|
||||
|
@ -11,8 +10,6 @@ from django.utils.encoding import force_text
|
|||
|
||||
FieldInfo = namedtuple('FieldInfo', FieldInfo._fields + ('extra',))
|
||||
|
||||
foreign_key_re = re.compile(r"\sCONSTRAINT `[^`]*` FOREIGN KEY \(`([^`]*)`\) REFERENCES `([^`]*)` \(`([^`]*)`\)")
|
||||
|
||||
|
||||
class DatabaseIntrospection(BaseDatabaseIntrospection):
|
||||
data_types_reverse = {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import re
|
||||
|
||||
import cx_Oracle
|
||||
|
||||
from django.db.backends.base.introspection import (
|
||||
|
@ -7,8 +5,6 @@ from django.db.backends.base.introspection import (
|
|||
)
|
||||
from django.utils.encoding import force_text
|
||||
|
||||
foreign_key_re = re.compile(r"\sCONSTRAINT `[^`]*` FOREIGN KEY \(`([^`]*)`\) REFERENCES `([^`]*)` \(`([^`]*)`\)")
|
||||
|
||||
|
||||
class DatabaseIntrospection(BaseDatabaseIntrospection):
|
||||
# Maps type objects to Django Field types.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue