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:
parent
d2d269ea15
commit
54d611d2a2
@ -1,3 +1,6 @@
|
||||
from django.db.backends.ansi import sql
|
||||
builder = sql.SchemaBuilder()
|
||||
|
||||
DATA_TYPES = {
|
||||
'AutoField': 'int IDENTITY (1, 1)',
|
||||
'BooleanField': 'bit',
|
||||
|
@ -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.
|
||||
|
@ -1,3 +1,6 @@
|
||||
from django.db.backends.ansi import sql
|
||||
builder = sql.SchemaBuilder()
|
||||
|
||||
DATA_TYPES = {
|
||||
'AutoField': 'number(38)',
|
||||
'BooleanField': 'number(1)',
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user