Jason Pellerin
|
e550c1eed4
|
[multi-db] Removed unused drop() method from Manager.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3448 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-25 18:49:18 +00:00 |
|
Jason Pellerin
|
f4a776eee7
|
[multi-db] Added check in model validation for models related to other
models using a different connection. Removed special-case stringifying
of _default connection.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3447 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-25 18:37:05 +00:00 |
|
Jason Pellerin
|
57208f6392
|
[multi-db] Added `__str__ ` to _default connection singleton.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3446 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-25 18:34:14 +00:00 |
|
Jason Pellerin
|
3cc04ec696
|
[multi-db] Updated django.core.management to use SchemaBuilder for each model to create sequence reset statements.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3444 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-25 00:47:55 +00:00 |
|
Jason Pellerin
|
6bd4b275af
|
[multi-db] Updated django.db.backends.postgresql.creation to use postgres-specific SchemaBuilder subclass.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-25 00:46:49 +00:00 |
|
Jason Pellerin
|
6c65e612b4
|
[multi-db] Added postgresql-specific SchemaBuilder subclass that includes method for sequence resets.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3442 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-25 00:45:43 +00:00 |
|
Jason Pellerin
|
14f8c83827
|
[multi-db] Backed out settings access through conf.settings, which was based on an incorrect understanding of settings implementation.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3430 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-23 04:05:30 +00:00 |
|
Jason Pellerin
|
94ccedf364
|
[multi-db] Corrected settings handling in isolation tests.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-23 04:01:15 +00:00 |
|
Jason Pellerin
|
5b964baa14
|
[multi-db] Removed debug print that should not have been checked in.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3428 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-23 03:33:48 +00:00 |
|
Jason Pellerin
|
438c23a6c6
|
[multi-db] Merge trunk to [3426]
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3427 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-23 03:31:52 +00:00 |
|
Jason Pellerin
|
d345b89bc6
|
[multi-db] Removed unneed import.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3419 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-21 22:05:38 +00:00 |
|
Jason Pellerin
|
88c64cc083
|
[multi-db] Expanded request-isolation tests.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3418 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-21 22:00:25 +00:00 |
|
Jason Pellerin
|
bbe357f34e
|
[multi-db] Added tests for thread isolation of db-related settings.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3417 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-21 21:59:54 +00:00 |
|
Jason Pellerin
|
e655cc3cc3
|
[multi-db] Reimplemented local proxying django.db.connection et al to be
more clear and thread safe.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3416 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-21 21:59:17 +00:00 |
|
Jason Pellerin
|
422aadfe2a
|
[multi-db] Updated runshell() calls to accept settings.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3412 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-21 18:15:02 +00:00 |
|
Jason Pellerin
|
e2385e3c53
|
[multi-db] Moved DateTimeField and TimeField microsecond adjustments
from get_db_prep_save to pre_save, since they depend on database
settings and get_db_prep_save does not have access to the model instance
to which the field is bound.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3394 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-20 15:27:49 +00:00 |
|
Jason Pellerin
|
a6064b22cf
|
[multi-db] Added first request isolation tests (testing that database settings can safely change between requests).
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3391 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 22:22:31 +00:00 |
|
Jason Pellerin
|
b8cc6302a6
|
[multi-db] Fixed bug in request isolation of ConnectionInfoDescriptor.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3390 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 22:21:37 +00:00 |
|
Jason Pellerin
|
c705f3a573
|
[multi-db] Integrated drop table generation from ansi sql, updated model
connection name access to use django.db.model_connection_name().
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3389 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 18:59:50 +00:00 |
|
Jason Pellerin
|
58b24acdf4
|
[multi-db] Updated ansi sql test to reflect that drop table output is
not reversed by default.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3388 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 18:58:41 +00:00 |
|
Jason Pellerin
|
9b84da453e
|
[multi-db] Removed reverse() from drop table output.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3387 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 18:58:03 +00:00 |
|
Jason Pellerin
|
d67abd9307
|
[multi-db] Moved ConnectionInfoDescriptor to django.db, updated imports
accordingly.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3386 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 18:57:26 +00:00 |
|
Jason Pellerin
|
5b6017edbf
|
[multi-db] Moved ConnectionInfoDescriptor() from manager to django.db,
added model_connection_name() function in django.db.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3385 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 18:56:31 +00:00 |
|
Jason Pellerin
|
439b814afc
|
[multi-db] Added workarounds for model-loading to allow in-module models to appear in get_models().
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3384 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 18:10:19 +00:00 |
|
Jason Pellerin
|
72b4c4c14a
|
[multi-db] Made some minor formatting/line-length adjustments
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 18:09:32 +00:00 |
|
Jason Pellerin
|
cf48f3cc82
|
[multi-db] Fixed broken tests.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3382 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 16:40:16 +00:00 |
|
Jason Pellerin
|
89ec26a585
|
[multi-db] Updated runtests.py to load TEST_DATABASE_MODEL settings into
settings.OTHER_DATABASES before test run.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3381 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 16:38:57 +00:00 |
|
Jason Pellerin
|
c5d0e1ac56
|
[multi-db] Updated query builder functions to use
opts.get_default_manager() to access db connection where only options
are available.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3380 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 14:58:46 +00:00 |
|
Jason Pellerin
|
32356827b4
|
[multi-db] Added weakref to model in Options (self._model) and method
Options.get_default_manager().
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 14:57:42 +00:00 |
|
Jason Pellerin
|
f350bcf058
|
[multi-db] Updated tests/othertests/manager_schema_manipulation to use OTHER_DATABASES settings and access db connection through model._default_manager.db.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 14:39:18 +00:00 |
|
Jason Pellerin
|
b8d27f0bcf
|
[multi-db] Updated tests/othertests/ansi_sql.py to access db connection info through model._default_manager.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3377 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 14:30:00 +00:00 |
|
Jason Pellerin
|
6b63e852fc
|
[multi-db] Began updating models.db.query to access connection through manager (work in progress).
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3370 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 02:46:18 +00:00 |
|
Jason Pellerin
|
f51a9fa30c
|
[multi-db] Updated multiple_databases tests to use OTHER_DATABASES setting.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3369 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 02:43:38 +00:00 |
|
Jason Pellerin
|
a5caa0ab27
|
[multi-db] Added MODELS settings to TEST_DATABASES.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3368 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 02:41:56 +00:00 |
|
Jason Pellerin
|
ed4e198d11
|
Updated ansi sql schema builder to access db connection through model._default_manager.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3367 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 02:38:31 +00:00 |
|
Jason Pellerin
|
8b77fe3195
|
[multi-db] Updated related fields to get db connection from model._default_manager.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 02:36:45 +00:00 |
|
Jason Pellerin
|
62306542ee
|
[multi-db] Updated Model and its utility functions to access the db connection through the default manager.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3365 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 02:32:40 +00:00 |
|
Jason Pellerin
|
e0486bd7a7
|
[multi-db] Removed connection information and db_connection from model Meta.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3364 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 02:31:44 +00:00 |
|
Jason Pellerin
|
22afa65b4b
|
[multi-db] Added basic tests for Manager.db attribute.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3363 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 02:28:58 +00:00 |
|
Jason Pellerin
|
d96e3c93a5
|
[multi-db] Added ConnectionInfoDescriptor and attached it as db attribute in Manager class.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3361 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-19 02:28:24 +00:00 |
|
Jason Pellerin
|
541ac3b990
|
[multi-db] Merge trunk to [3354]
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3355 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-16 23:11:33 +00:00 |
|
Jason Pellerin
|
49ce784805
|
[multi-db] Changed name of optional named databases setting to
OTHER_DATABASES.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3335 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-11 20:38:27 +00:00 |
|
Jason Pellerin
|
97d1f60d77
|
[multi-db] Refactored connection handling to correct bugs in original
design relating to thread and request isolation. Changed name of
optional named databases attribute in settings to
settings.OTHER_DATABASES.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3334 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-11 20:37:07 +00:00 |
|
Jason Pellerin
|
c0132e88f6
|
[multi-db] Added preliminary drop-table generation to django.db.backends.ansi.sql.SchemaBuilder.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-11 03:16:28 +00:00 |
|
Jason Pellerin
|
3e562344ab
|
[multi-db] Removed sql functions that have been moved to django.db.backends.ansi.sql.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-10 20:02:15 +00:00 |
|
Jason Pellerin
|
47d20cb5cf
|
[multi-db] Updated django.core.management.get_sql_initial_data to use each model's connection info. Removed unused style argument from builder.get_initialdata.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3315 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-10 19:40:32 +00:00 |
|
Jason Pellerin
|
7ac06ee5be
|
[multi-db] Minor refactoring: moved collation of sql statements by connection name to function.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-10 19:36:16 +00:00 |
|
Jason Pellerin
|
541f4e9671
|
[multi-db] Updated django.core.management.get_sql_indexes to use each model's connection info.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-10 19:27:40 +00:00 |
|
Jason Pellerin
|
ef1a9eeb64
|
[multi-db] Merge trunk to [3302]
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-09 17:11:34 +00:00 |
|
Jason Pellerin
|
60947322a5
|
[multi-db] Updated tests to expect pendings in dict format instead of
list.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3293 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-07 21:31:16 +00:00 |
|