diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-08-19 23:03:38 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-08-19 23:03:38 +0000 |
| commit | 8e84d35d38d429fb00a35fd4f770ade39d7772ec (patch) | |
| tree | c083bdfa7c3acccbadccb4784f62cf8c8e024ca2 /django/db/backends/__init__.py | |
| parent | ed8e392f771b415fc5b5c95a770d6a3b4f59530a (diff) | |
Refactored get_deferrable_sql() to DatabaseOperations.deferrable_sql(). Refs #5106
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5955 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/__init__.py')
| -rw-r--r-- | django/db/backends/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index 41295a15b7..ea75dcf840 100644 --- a/django/db/backends/__init__.py +++ b/django/db/backends/__init__.py @@ -78,3 +78,10 @@ class BaseDatabaseOperations(object): method should return None if no casting is necessary. """ return None + + def deferrable_sql(self): + """ + Returns the SQL necessary to make a constraint "initially deferred" + during a CREATE TABLE statement. + """ + return '' |
