summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2014-09-27Fixed #23560 -- Fixed MigrationWrite to handle builtin types without imports.Loic Bistuer
Thanks Tim Graham for the review.
2014-09-26Fixed #23460 -- Added literal `%s` support to extra() QuerySets.Matt Robenolt
2014-09-26Factorized schema_editor() at BaseDatabaseWrapper levelClaude Paroz
2014-09-25Fixed #23455 -- Forced related_name to be a unicode string during ↵Markus Holtermann
deconstruction.
2014-09-25Fixed #23538 -- Added SchemaEditor for MySQL GIS.Tim Graham
Thanks Claude Paroz for suggestions and review.
2014-09-25Fixed #23415 -- Added fields for unmanaged and proxy model migrations.Markus Holtermann
Thanks sky-chen for the report.
2014-09-24Revert "Fixed #23474 -- Prevented migrating backwards from unapplying the ↵Tim Graham
wrong migrations." This reverts commit abcf28a07695a45cb5fb15b81bffc97bea5e0be3.
2014-09-24Fixed #23426 -- Don't require double percent sign in RunSQL without parametersMarkus Holtermann
2014-09-24Fixed flake8 warnings.Tim Graham
2014-09-24Changed Oracle test-user creation to grant privileges instead of rolesShai Berger
because the roles (specifically RESOURCE) are deprecated. Also added optional support for creating views in tests, and made an introspection test fail (rather than skip) if a view cannot be created due to lacking privileges. Refs #18782 Thanks Tim Graham for review, and Josh Smeaton
2014-09-24Fixed #23550 -- Normalized get_queryset() of RelatedObjectDescriptorLoic Bistuer
and ReverseSingleRelatedObjectDescriptor so they actually return QuerySet instances. Also ensured that SingleRelatedObjectDescriptor.get_queryset() accounts for use_for_related_fields=True. This cleanup lays the groundwork for #23533. Thanks Anssi Kääriäinen for the review.
2014-09-23Called table_names instead of get_table_list in migrationsClaude Paroz
2014-09-23Fixed #18782 -- Prevented sql_flush to flush viewsClaude Paroz
Thanks rodolfo_3 for the report and the initial patch, and Josh Smeaton, Shai Berger and Tim Graham for the reviews.
2014-09-23Made get_table_list return a TableInfo named tupleClaude Paroz
2014-09-23Fixed #23503 -- Fixed renaming of model with self-referential m2m field.Sergey Fedoseev
2014-09-23Fixed #23065 -- Quoted constraint names in SQL generated by migrations.Sergey Fedoseev
2014-09-23Factored create_fk_sql, create_unique_sql, and delete_constraint_sql.Sergey Fedoseev
2014-09-19Fixed #23443 -- Corrected erroneous FieldError message.Thomas Chaumeny
Thanks Tim Graham for the review.
2014-09-17Fixed #21775 -- Allowed customization of datafile for Oracle tablespaceJosh Smeaton
2014-09-16Fixed #23492 -- Restored F.__deepcopy__.Baptiste Mispelon
This reverts commit 3a66035107a640c4905f0a5f247a45f32dbe16d7. A regression test was also added.
2014-09-16Fixed #19463 -- Added UUIDFieldMarc Tamlyn
Uses native support in postgres, and char(32) on other backends.
2014-09-15Fixed #23474 -- Prevented migrating backwards from unapplying the wrong ↵valtron
migrations.
2014-09-13Factorized create_index_sql expressionClaude Paroz
2014-09-12Fixed #23484 -- Add comment in AppConfigStub clarifying app name vs app label.Carl Meyer
2014-09-12Fixed #23483 -- Prevented ImproperlyConfigured with dotted app namesSzilveszter Farkas
Made sure the app labels stay unique for the AppConfigStubs, so migrations wouldn't fail if two dotted app names has the same last part (e.g. django.contrib.auth and vendor.auth)
2014-09-10Corrected grammar in migrations error message.Markus Bertheau
2014-09-10Fixed #23452 -- Prevented infinite migrations for empty unique/index_together.Markus Holtermann
Thanks fwkroon for the report.
2014-09-09Fixed #11775 -- Made ABSOLUTE_URL_OVERRIDES work with models that don't ↵Tim Graham
define get_absolute_url(). Thanks jukvalim for the report and initial patch, and Preston Timmons for review.
2014-09-08Updated links to point to dev documentation.Markus Holtermann
2014-09-08Fixed #23434 -- Coerce Oracle bool params to intJosh Smeaton
2014-09-08Fixed #22951 -- Checked for types during deep_deconstruct migration ↵Andrew Pinkham
serialization process. Thanks Sam Hartsfield for the report.
2014-09-06Fixed #23416 -- Make sure DatabaseCreation respects checks.Marc Tamlyn
Migrations respected Field.db_parameters()['check'], but DatabaseCreation was still using just Field.db_type().
2014-09-05 switch out recursive dfs for stack based approach, to avoid possibly ↵Ben Reilly
hitting the recursion limit
2014-09-05Revert "Fixed #23384 -- Allowed overriding part of a dictionary-type setting"Claude Paroz
This reverts commit 66757fee7e921ad4c35e0b3f80c25e026100b31c. Discussions have led to think that this functionality does not bring significant benefits to justify the added complexity. Read also discussions on ticket #22734.
2014-09-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2014-09-03Fixed #18757, #14462, #21565 -- Reworked database-python type conversionsMarc Tamlyn
Complete rework of translating data values from database Deprecation of SubfieldBase, removal of resolve_columns and convert_values in favour of a more general converter based approach and public API Field.from_db_value(). Now works seamlessly with aggregation, .values() and raw queries. Thanks to akaariai in particular for extensive advice and inspiration, also to shaib, manfre and timograham for their reviews.
2014-09-02Fixed #23302 -- Added --name/-n option to makemigrations commandRaffaele Salmaso
2014-09-02Fixed #22918 -- Fixed SeparateDatabaseAndState crashDave Hall
2014-08-30Fixed #23370 -- defer() + select_related() crashed with inherited models.Akis Kesoglou
2014-08-30Fixed #23384 -- Allowed overriding part of a dictionary-type settingClaude Paroz
This change is needed for upcoming changes where settings might be grouped in a parent dictionary. Thanks Tim Graham for the review.
2014-08-29Fixed #23313 -- Corrected repr(RawQuery) with dict parameters.Andrew Torpedov
2014-08-28Factorize some code using ContextDecorator.Thomas Chaumeny
2014-08-27Fixed #23357 -- Added small int introspection support to MySQL backend.Jon Dufresne
In the MySQL backend, updated the can_introspect_small_integer feature flag to True. In data_types_reverse, map FIELD_TYPE.SHORT to a SmallIntegerField. Added test to verify introspecting SmallIntegerFields and fixed existing tests influenced by this change.
2014-08-25Made main user disconnect after creating test user/tablespaces on OracleShai Berger
2014-08-23Fixed #23341 -- Added migration name to nonexistent migration error in ↵Raffaele Salmaso
makemigrations.
2014-08-22Added docstring forgotten in 56252e7.Shai Berger
2014-08-22Fixed schema test for Oracle 11.2.0.1 which is used in Django Project's CI.Shai Berger
Refs #23073 Workaround. Refs #22738 Repeats the mysql "offense". When the issue is solved, the Oracle special case should be made to play with the solution (that is, Oracle should be fixed the same way that mysql and the 3rd-party backneds are).
2014-08-20Fixed #23322 -- Use resolved swappable model for dependency resolution ↵Markus Holtermann
during makemigrations
2014-08-19Fixed #23315: Operational dependency fail with mixed create/addAndrew Godwin
2014-08-19Fixed #23316 -- Added datetime.time serialization in migrations.Lee Sanghyuck