| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2017-12-22 | Fixed #28884 -- Fixed crash on SQLite when renaming a field in a model ↵ | Simon Charette | |
| referenced by a ManyToManyField. Introspected database constraints instead of relying on _meta.related_objects to determine whether or not a table or a column is referenced on rename operations. This has the side effect of ignoring both db_constraint=False and virtual fields such as GenericRelation which aren't backend by database level constraints and thus shouldn't prevent the rename operations from being performed in a transaction. Regression in 095c1aaa898bed40568009db836aa8434f1b983d. Thanks Tim for the additional tests and edits, and Mariusz for the review. | |||
| 2017-12-01 | Fixed #28849 -- Fixed referenced table and column rename on SQLite. | Simon Charette | |
| Thanks Ramiro for the input and Tim for the review. | |||
| 2017-11-28 | Fixed #28854 -- Replaced type(True) with bool in sqlite's SchemaEditor. | Дилян Палаузов | |
| 2017-11-23 | Used bytes.hex() and bytes.fromhex() to simplify. | Sergey Fedoseev | |
| 2017-07-11 | Fixed #14204 -- Enforced SQLite foreign key constraints. | Claude Paroz | |
| Thanks Tim Graham for contributing to the patch and Simon Charette for advice and review. | |||
| 2017-06-21 | Refs #25530 -- Deleted deferred SQL references on delete operation. | Simon Charette | |
| 2017-06-21 | Refs #25530 -- Tracked references of deferred SQL statements. | Simon Charette | |
| 2017-06-01 | Refs #23968 -- Removed unnecessary lists, generators, and tuple calls. | Jon Dufresne | |
| 2017-02-28 | Refs #27656 -- Updated django.db docstring verbs according to PEP 257. | Anton Samarchyan | |
| 2017-01-25 | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | |
| 2017-01-18 | Refs #23919 -- Removed six.<various>_types usage | Claude Paroz | |
| Thanks Tim Graham and Simon Charette for the reviews. | |||
| 2016-08-05 | Fixed #26808 -- Added Meta.indexes for class-based indexes. | Akshesh | |
| * Added the index name to its deconstruction. * Added indexes to sqlite3.schema._remake_table() so that indexes aren't dropped when _remake_table() is called. Thanks timgraham & MarkusH for review and advice. | |||
| 2016-07-18 | Removed unnecessary looping in sqlite3 SchemaEditor. | akki | |
| 2016-07-06 | Fixed #26841 -- Avoid remake tables for altering togethers in sqlite3 (#6888) | akki | |
| alter_index_together and alter_unique_together no more use _remake_table method in sqlite3 | |||
| 2016-05-17 | Fixed #26613 -- Made sqlite3 optional in SchemaEditor.quote_value(). | Philip Liberato | |
| 2016-03-29 | Fixed #26384 -- Fixed renaming the PK on a model with a self-referential FK ↵ | Alex Hill | |
| on SQLite. | |||
| 2015-07-15 | Fixed #25128 -- Fixed SQLite SchemaEditor crash when adding a ForeignObject ↵ | Tim Graham | |
| field. | |||
| 2015-06-06 | Imported sqlite3 instead of _sqlite3 | Sagar Mittal | |
| adapt and ProgrammingError are both available on the sqlite3 module. There's no need to import the internal _sqlite3 module. | |||
| 2015-05-04 | Allowed using the sqlite3 backend as much as possible without _sqlite3. | Milan Broum | |
| The inner import was dropped during the reorganizing of the database backends in commit 28308078f397d1de36fd0da417ac7da2544ba12d. | |||
| 2015-04-03 | Cleaned up use of context manager in SQLite schema editor | Alex Hill | |
| 2015-03-25 | Renamed Field.rel attribute to remote_field | Anssi Kääriäinen | |
| Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True. | |||
| 2015-03-23 | Fixed #12400 -- Allowed geometry fields in unique_together | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2015-03-21 | Explicitly disable FK constraints in SQLite editor | Alex Hill | |
| 2015-03-21 | Safer table alterations under SQLite | Alex Hill | |
| Table alterations in SQLite require creating a new table and copying data over from the old one. This change ensures that no Django model ever exists with the temporary table name as its db_table attribute. | |||
| 2015-02-11 | Fixed isort import that's inconsistent between platforms. | Loic Bistuer | |
| 2015-02-06 | Sorted imports with isort; refs #23860. | Tim Graham | |
| 2015-01-22 | Fixed #24104 -- Fixed check to look on field.many_to_many instead of class ↵ | Andriy Sokolovskiy | |
| instance | |||
| 2015-01-14 | Fixed #22603 -- Reorganized classes in django.db.backends. | Tim Graham | |
| 2015-01-06 | Fixed #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-15 | Fixed #23987 -- Made SQLite SchemaEditor always use effective_default(). | Andriy Sokolovskiy | |
| 2014-12-08 | Fixed #23968 -- Replaced list comprehension with generators and dict ↵ | Jon Dufresne | |
| comprehension | |||
| 2014-12-01 | Fixed #23880 -- Added missing index_together handling for SQLite | Markus Holtermann | |
| 2014-10-23 | Fixed #23702 -- Fixed adding an explicit id field on SQLite. | Tim Graham | |
| Thanks gavinwahl for the report. | |||
| 2014-10-09 | Fixed #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-05 | Limited lines to 119 characters in django/ | Tim Graham | |
| refs #23395. | |||
| 2014-08-10 | Made sqlite's remove_field behave like the base backend. | Florian Apolloner | |
| 2014-07-23 | Fixed #23030 -- Properly handled geometry columns metadata during migrations | Claude Paroz | |
| Thanks kunitoki for the report and initial patches. | |||
| 2014-07-21 | Fixed #23014: Renaming not atomic with unique together | Andrew Godwin | |
| 2014-06-16 | Fixed #22844: Duplicate SQL for SQLite FKs | Andrew Godwin | |
| 2014-05-20 | Fixed #22432: SQLite M2M repointing now works. Thanks to xelnor. | Andrew Godwin | |
| 2014-05-20 | Fixed #22649: Beefed up quote_value | Andrew Godwin | |
| 2014-05-17 | Fixed #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-08 | Fixed #22476: Couldn't alter attributes on M2Ms with through= set | Andrew Godwin | |
| 2014-05-07 | Fixed #22581: Pass default values for schema through get_db_prep_save() | Andrew Godwin | |
| 2014-04-18 | Fixed #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-18 | Revert "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-17 | Fixed #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-03-31 | Fixed #22359 -- Changing M2M field to blank=True failed on sqlite. | Loic Bistuer | |
| 2014-03-24 | Fixed #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-18 | Fix any sqlite field migration deleting all implicit m2m tables | Chris Beaven | |
| Fixes #22281 | |||
