1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

[multi-db] Added builder property to creation module of all backends. Currently for all backends builder is a django.db.backends.ansi.sql.SchemaBuilder.

git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3265 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jason Pellerin 2006-07-03 20:53:36 +00:00
parent d2d269ea15
commit 54d611d2a2
5 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,6 @@
from django.db.backends.ansi import sql
builder = sql.SchemaBuilder()
DATA_TYPES = {
'AutoField': 'int IDENTITY (1, 1)',
'BooleanField': 'bit',

View File

@ -1,3 +1,6 @@
from django.db.backends.ansi import sql
builder = sql.SchemaBuilder()
# This dictionary maps Field objects to their associated MySQL column
# types, as strings. Column-type strings can contain format strings; they'll
# be interpolated against the values of Field.__dict__ before being output.

View File

@ -1,3 +1,6 @@
from django.db.backends.ansi import sql
builder = sql.SchemaBuilder()
DATA_TYPES = {
'AutoField': 'number(38)',
'BooleanField': 'number(1)',

View File

@ -1,3 +1,6 @@
from django.db.backends.ansi import sql
builder = sql.SchemaBuilder()
# This dictionary maps Field objects to their associated PostgreSQL column
# types, as strings. Column-type strings can contain format strings; they'll
# be interpolated against the values of Field.__dict__ before being output.

View File

@ -1,3 +1,6 @@
from django.db.backends.ansi import sql
builder = sql.SchemaBuilder()
# SQLite doesn't actually support most of these types, but it "does the right
# thing" given more verbose field definitions, so leave them as is so that
# schema inspection is more useful.