summaryrefslogtreecommitdiff
path: root/django/db/backends/sqlite3/schema.py
AgeCommit message (Collapse)Author
2017-12-01[2.0.x] Fixed #28849 -- Fixed referenced table and column rename on SQLite.Simon Charette
Thanks Ramiro for the input and Tim for the review. Backport of 095c1aaa898bed40568009db836aa8434f1b983d from master
2017-07-11Fixed #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-21Refs #25530 -- Deleted deferred SQL references on delete operation.Simon Charette
2017-06-21Refs #25530 -- Tracked references of deferred SQL statements.Simon Charette
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-02-28Refs #27656 -- Updated django.db docstring verbs according to PEP 257.Anton Samarchyan
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2016-08-05Fixed #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-18Removed unnecessary looping in sqlite3 SchemaEditor.akki
2016-07-06Fixed #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-17Fixed #26613 -- Made sqlite3 optional in SchemaEditor.quote_value().Philip Liberato
2016-03-29Fixed #26384 -- Fixed renaming the PK on a model with a self-referential FK ↵Alex Hill
on SQLite.
2015-07-15Fixed #25128 -- Fixed SQLite SchemaEditor crash when adding a ForeignObject ↵Tim Graham
field.
2015-06-06Imported sqlite3 instead of _sqlite3Sagar Mittal
adapt and ProgrammingError are both available on the sqlite3 module. There's no need to import the internal _sqlite3 module.
2015-05-04Allowed 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-03Cleaned up use of context manager in SQLite schema editorAlex Hill
2015-03-25Renamed Field.rel attribute to remote_fieldAnssi 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-23Fixed #12400 -- Allowed geometry fields in unique_togetherClaude Paroz
Thanks Tim Graham for the review.
2015-03-21Explicitly disable FK constraints in SQLite editorAlex Hill
2015-03-21Safer table alterations under SQLiteAlex 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-11Fixed isort import that's inconsistent between platforms.Loic Bistuer
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-22Fixed #24104 -- Fixed check to look on field.many_to_many instead of class ↵Andriy Sokolovskiy
instance
2015-01-14Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham
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-15Fixed #23987 -- Made SQLite SchemaEditor always use effective_default().Andriy Sokolovskiy
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-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-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2014-08-10Made sqlite's remove_field behave like the base backend.Florian Apolloner
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-16Fixed #22844: Duplicate SQL for SQLite FKsAndrew Godwin
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-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-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-03-31Fixed #22359 -- Changing M2M field to blank=True failed on sqlite.Loic Bistuer
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-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.
2014-02-09Fixed #21844: Move quote_parameter off of Operations and renameAndrew Godwin
2014-02-09Fixed #21917: Overly cautious SQLite3 backend for null fields + defaultsAndrew Godwin