summaryrefslogtreecommitdiff
path: root/django/db/backends/schema.py
AgeCommit message (Collapse)Author
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-31Copied BaseDatabaseCreation._digest() to SchemaEditor to remove dependency.Tim Graham
refs #22340.
2014-12-30Fixed #23581 -- Prevented extraneous DROP DEFAULT statements.Tim Graham
Thanks john_scott for the report and Markus Holtermann for review.
2014-12-23Replaced DatabaseCreation sql methods by schema editor equivalentsClaude Paroz
Also used schema editor in migrate to sync unmigrated apps (sync_apps). Refs #22340. Thanks Tim Graham for the review.
2014-12-04Fixed #23954 -- Added special text/varchar PostgreSQL indexes in migrationsClaude Paroz
Thanks adityagupta104 for the report and Tim Graham for the review.
2014-12-04Fixed #23920 -- Fixed MySQL crash when adding blank=True to TextField.Tim Graham
Thanks wkornewald for the report and Markus Holtermann for review.
2014-12-01Fixed #23909 -- Prevented crash when collecting SQL for RunSQLClaude Paroz
Thanks James Rivett-Carnac for the report and Markus Holtermann for the review.
2014-11-20Reduced reduce() usage; refs #23796.Brad Walker
django.core.exceptions.ValidationError.messages() and django.db.backends.schema.BaseDatabaseSchemaEditor._alter_field(): Replaced reduce(operator.add, ...) w/uncoupled, explicit sum()
2014-10-31Fixed #23738 -- Allowed migrating from NULL to NOT NULL with the same ↵Markus Holtermann
default value Thanks to Andrey Antukh 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-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-13Factorized create_index_sql expressionClaude Paroz
2014-09-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2014-08-09Fixed #23264: Schema backends honour db_constraintAndrew Godwin
2014-08-07Moved index dropping after FK dropping to please MySQL and fix testAndrew Godwin
2014-08-04Fixed #23091: CreateModel and AddField were clashing with deferred SQLAndrew Godwin
2014-07-25Fixed #23085: Better error message for PostGIS 1.5/bad custom fieldsAndrew Godwin
2014-07-21Fixed #23009: Shorten FK identifiers in add_field and make consistentAndrew Godwin
2014-07-21Fixed #22975: Don't call rename SQL if not neededAndrew Godwin
2014-07-21Fixed #23043: alter_field drops defaults tooAndrew Godwin
2014-06-16Fixed #22851: BinaryView wasn't getting a binary defaultAndrew Godwin
2014-05-20Fixed #22432: SQLite M2M repointing now works. Thanks to xelnor.Andrew Godwin
2014-05-20Merge pull request #2634 from loic/ticket22424Andrew Godwin
Fixed #22424 -- MySQL doesn't accept migrations' one-off default values ...
2014-05-20Add feature for implied null (needed for Firebird backend)Andrew Godwin
2014-05-18Fixed #22424 -- Fixed handling of default values for TextField/BinaryField ↵Loic Bistuer
on MySQL. Thanks syphar for the review and suggestions.
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-25Fixed #22498 -- constraint name was not quoted in FK creation SQLShai Berger
2014-04-23Used the same instance of atomic for entry and exit.Aymeric Augustin
Since all state is maintained on the connection at this time and none in the atomic, it doesn't matter, but it could introduce some subtle bugs if the implementation changed in the future.
2014-04-23Wrapped migrations in a transaction only on DBs with transactional DDL.Aymeric Augustin
2014-04-16Fixed #22460 -- Explicity remove constraints when dropping a related field.Motiejus Jakštys
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-08Fixed #22183: Through M2Ms now correctly handledAndrew Godwin
2014-03-08Merge pull request #2315 from bendavis78/issues/22073Andrew Godwin
Fixed #22073 - Ensure CreateTable operation handles backwards migration correctly when M2M fields are present
2014-03-06Revert "Fixed #22183: Don't make a table for M2Ms with through="Andrew Godwin
This reverts commit 1562b9896f8f614ef40fd032b1ec777280b377c1.
2014-03-06Fixed #22183: Don't make a table for M2Ms with through=Andrew Godwin
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-02-17Fixed #22073 - Ensure CreateTable operation handles backwards migration ↵Ben Davis
correctly when M2M fields are present
2014-02-09Fixed #21844: Move quote_parameter off of Operations and renameAndrew Godwin
2014-02-09Fixed #21842: Remove redundant DatabaseFeatures.max_index_name_lengthAndrew Godwin
2014-02-02Ensure cursors are closed when no longer needed.Michael Manfre
This commit touchs various parts of the code base and test framework. Any found usage of opening a cursor for the sake of initializing a connection has been replaced with 'ensure_connection()'.
2013-12-28Added generation of SQLite FK DDL in initial migrations.Ramiro Morales
SQLite accepts the relevant standard SQL (although by default it doesn't enforce the constraint), and the 'traditional' creation backend helper generate it, so this allows us to: - Maintain the status quo - Improve readability of the SQL code generated for that backend. Also, we will need this for when we fix Refs #14204.
2013-12-28Implemented #10164 for new schema migration code.Ramiro Morales
Made it use 'AUTOINCREMENT' suffix for PK creation. This way it doeesn't regress when compared with the 'traditional' DB backend creation infrastructure. Refs #10164.
2013-12-27Fixed #21692 -- Quote table name when creating it.Ramiro Morales
2013-12-11Fix altering of SERIAL columns and InnoDB being picky about FK changesAndrew Godwin
2013-12-11Change FKs when what they point to changesAndrew Godwin
2013-12-11Fix sqlmigrate's output for parametersAndrew Godwin