summaryrefslogtreecommitdiff
path: root/django/db/backends/sqlite3
AgeCommit message (Collapse)Author
2015-01-14Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham
2015-01-12Fixed #17785 -- Preferred column names in get_relations introspectionClaude Paroz
Thanks Thomas Güttler for the report and the initial patch, and Tim Graham for the review.
2015-01-10Introspected alternate SQLite FK definitionsClaude Paroz
2015-01-08Fixed #24020 -- Refactored SQL compiler to use expressionsAnssi Kääriäinen
Refactored compiler SELECT, GROUP BY and ORDER BY generation. While there, also refactored select_related() implementation (get_cached_row() and get_klass_info() are now gone!). Made get_db_converters() method work on expressions instead of internal_type. This allows the backend converters to target specific expressions if need be. Added query.context, this can be used to set per-query state. Also changed the signature of database converters. They now accept context as an argument.
2015-01-06Fixed #12663 -- Formalized the Model._meta API for retrieving fields.Daniel Pyrathon
Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
2014-12-31Moved DatabaseCreation.data_types properties to DatabaseWrapper.Tim Graham
refs #22340.
2014-12-30Fixed #12118 -- Added shared cache support to SQLite in-memory testing.Andriy Sokolovskiy
2014-12-23Refs #2443 -- fixed format_dtdelta on SQLiteAnssi Kääriäinen
A test failed on Python 2 32-bit.
2014-12-20Fixed #2443 -- Added DurationField.Marc Tamlyn
A field for storing periods of time - modeled in Python by timedelta. It is stored in the native interval data type on PostgreSQL and as a bigint of microseconds on other backends. Also includes significant changes to the internals of time related maths in expressions, including the removal of DateModifierNode. Thanks to Tim and Josh in particular for reviews.
2014-12-15Fixed #23987 -- Made SQLite SchemaEditor always use effective_default().Andriy Sokolovskiy
2014-12-12Fixed #23941 -- Removed implicit decimal formatting from expressions.Josh Smeaton
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-12-01Fixed #23880 -- Added missing index_together handling for SQLiteMarkus Holtermann
2014-11-28Fixed #16731 -- Made pattern lookups work properly with F() expressionsThomas Chaumeny
2014-11-15Fixed #14030 -- Allowed annotations to accept all expressionsJosh Smeaton
2014-10-23Fixed #23702 -- Fixed adding an explicit id field on SQLite.Tim Graham
Thanks gavinwahl for the report.
2014-10-09Fixed #23609 -- Fixed IntegrityError that prevented altering a NULL column ↵Markus Holtermann
into a NOT NULL one due to existing rows Thanks to Simon Charette, Loic Bistuer and Tim Graham for the review.
2014-09-26Factorized schema_editor() at BaseDatabaseWrapper levelClaude Paroz
2014-09-23Made get_table_list return a TableInfo named tupleClaude Paroz
2014-09-16Fixed #19463 -- Added UUIDFieldMarc Tamlyn
Uses native support in postgres, and char(32) on other backends.
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-08-10Made sqlite's remove_field behave like the base backend.Florian Apolloner
2014-08-06Fixed #21603 -- Fixed complex RawQuerySets queries on some versions of SQLite.Alex Hill
2014-08-04Fixed #22234 -- Replaced OS-specific code with subprocess.call() in dbshell.Mihail Milushev
This fixes escaping of special characters on Windows.
2014-07-28Fixed #23074 -- Avoided leaking savepoints in atomic.Aymeric Augustin
Thanks Chow Loong Jin for the report and the initial patch.
2014-07-23Fixed #23030 -- Properly handled geometry columns metadata during migrationsClaude Paroz
Thanks kunitoki for the report and initial patches.
2014-07-21Fixed #23014: Renaming not atomic with unique togetherAndrew Godwin
2014-06-16Renamed DatabaseFeature.supports_check_constraints to ↵Tim Graham
supports_column_check_constraints. Thanks maxi for the suggestion.
2014-06-16Fixed #22844: Duplicate SQL for SQLite FKsAndrew Godwin
2014-06-06Replaced an explicit vendor check by a feature flag.Aymeric Augustin
Forward-port of c9aedce0 from stable/1.7.x.
2014-06-01Fixed #22744 -- Fixed sqlite3 get_relations introspection with viewsClaude Paroz
Thanks Tim Graham for the report and Simon Charette for the review.
2014-05-28Fixed #20550 -- Added ability to preserve test db between runsGreg Chapple
2014-05-20Fixed #22432: SQLite M2M repointing now works. Thanks to xelnor.Andrew Godwin
2014-05-20Fixed #22649: Beefed up quote_valueAndrew Godwin
2014-05-17Fixed #22626 -- Allow BinaryField defaults with SQlite.Raphaël Barrois
Also fixes a slight issue in sqlite3.schema._remake_table where default values where quoted with "column name" quoting rules. Reference for quoting: http://www.sqlite.org/lang_expr.html Thanks Shai Berger for the review. Refs #22424.
2014-05-08Added feature flags for introspection capabilities.Aymeric Augustin
2014-05-08Fixed #22476: Couldn't alter attributes on M2Ms with through= setAndrew Godwin
2014-05-07Fixed #22581: Pass default values for schema through get_db_prep_save()Andrew Godwin
2014-04-25Set some transaction-related feature flags on SQLite.Aymeric Augustin
Refs #22496.
2014-04-18Fixed #22397 -- Issues removing M2M field with explicit through modelAndrew Gorcester
Changed the migration autodetector to remove models last so that FK and M2M fields will not be left as dangling references. Added a check in the migration state renderer to error out in the presence of dangling references instead of leaving them as strings. Fixed a bug in the sqlite backend to handle the deletion of M2M fields with "through" models properly (i.e., do nothing successfully). Thanks to melinath for report, loic for tests and andrewgodwin and charettes for assistance with architecture.
2014-04-18Revert "Fixed #22397 -- Issues removing M2M field with explicit through model."Simon Charette
This reverts commit 00e3b9a2a992ee0b7288eeeb03e7cbd52ebc6dce. It's causing a regression when tested with the proxy_model_inheritance tests.
2014-04-17Fixed #22397 -- Issues removing M2M field with explicit through model.Andrew Gorcester
Changed the migration autodetector to remove models last so that FK and M2M fields will not be left as dangling references. Added a check in the migration state renderer to error out in the presence of dangling references instead of leaving them as strings. Fixed a bug in the sqlite backend to handle the deletion of M2M fields with "through" models properly (i.e., do nothing successfully). Thanks to melinath for report, loic for tests and andrewgodwin and charettes for assistance with architecture.
2014-04-10Fixed #22321 -- Wrapped exceptions in _set_autocommit.Aymeric Augustin
Refs #21202.
2014-03-31Fixed #22359 -- Changing M2M field to blank=True failed on sqlite.Loic Bistuer
2014-03-25Fixed #12030 -- Validate integer field range at the model level.Simon Charette
Thanks to @timgraham for the review.
2014-03-24Fixed #22293 -- Avoided renaming many-to-many tables to themselves.Daniel Hahler
Fixed this for both implementations of _alter_many_to_many, instead of in `alter_db_table` itself (more implementations).
2014-03-18Fix any sqlite field migration deleting all implicit m2m tablesChris Beaven
Fixes #22281
2014-03-09Reorganized the database test settingsShai Berger
Change database test settings from "TEST_"-prefixed entries in the database settings dictionary to setting in a dictionary that is itself an entry "TEST" in the database settings. Refs #21775 Thanks Josh Smeaton for review.
2014-03-01Fixed #22168 -- Fixed migrations failing on sqlite when column names are SQL ↵Baptiste Mispelon
keywords Thanks to trac user fallen_flint for the report and initial patch.