summaryrefslogtreecommitdiff
path: root/tests/schema
AgeCommit message (Collapse)Author
2015-03-07[1.8.x] Fixed #24447 -- Made migrations add FK constraints for existing columnsJean-Louis Fuchs
When altering from e.g. an IntegerField to a ForeignKey, Django didn't add a constraint. Backport of f4f0060feaee6bbd76a0d575487682bc541111e4 from master
2015-02-19[1.8.x] Fixed #24307: Avoided redundant column nullability modifications on ↵Shai Berger
Oracle Thanks Joris Benschop for the report, and Tim Graham for the tests. Backport of ceadc94f09 from master
2015-02-09[1.8.x] Sorted imports with isort; refs #23860.Tim Graham
Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
2015-02-06[1.8.x] Fixed small regression caused by ↵Markus Holtermann
e3702dc3f2af9e8cc6c1155b248f458899be334e Since 1.7 models need to declare an explicit app_label if they are not in an application in INSTALLED_APPS or were imported before their application was loaded. Backport of 235124d3eaf6cc7ab9f97f1d1467d1caf18e1016 from master
2015-02-05[1.8.x] Cleaned up schema testsMarkus Holtermann
Thanks Tim Graham for the review. Backport of 0204714b0bdf10d7558ee106de9a718407f3ec5a from master
2015-01-22[1.8.x] Fixed #24104 -- Fixed check to look on field.many_to_many instead of ↵Andriy Sokolovskiy
class instance Backport of 38c17871bb6dafd489367f6fe8bc56199223adb8 from master
2015-01-20[1.8.x] Refs #24163 -- Fixed failing Oracle test when migrating from ↵Markus Holtermann
ForeignKey to OneToOneField Thanks Tim Graham for review Backport of 64ecb3f07db4be5eef4d9eb7687f783ee446c82f from master
2015-01-19[1.8.x] Fixed #24163 -- Removed unique constraint after index on MySQLMarkus Holtermann
Thanks Łukasz Harasimowicz for the report. Backport of 5792e6a88c1444d4ec84abe62077338ad3765b80 from master
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-30Fixed #23581 -- Prevented extraneous DROP DEFAULT statements.Tim Graham
Thanks john_scott for the report and Markus Holtermann for review.
2014-12-15Fixed refs #23987 test on Oracle.Tim Graham
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-04Fixed #23920 -- Fixed MySQL crash when adding blank=True to TextField.Tim Graham
Thanks wkornewald for the report and Markus Holtermann for review.
2014-11-03Fixed typos using https://github.com/vlajos/misspell_fixerVeres Lajos
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-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-27Fixed #22738 -- made finer distinctions for when Boolean is not detected on ↵Shai Berger
Oracle Thanks Claude Paroz for partial fix and Simon Charrette for review
2014-09-26Fixed #22738 -- Abstracted boolean field type introspectionClaude Paroz
Thanks maxi for the report, Shai Berger for his help with the patch and Tim Graham for the review.
2014-09-23Fixed #23065 -- Quoted constraint names in SQL generated by migrations.Sergey Fedoseev
2014-08-25Removed unnecessary absolute_imports.Tim Graham
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-09Fixed #23264: Schema backends honour db_constraintAndrew Godwin
2014-08-04Fixed #23091: CreateModel and AddField were clashing with deferred SQLAndrew Godwin
2014-07-21Fixed #23009: Shorten FK identifiers in add_field and make consistentAndrew Godwin
2014-06-18Fixed several flake8 errorsAlex Gaynor
2014-06-17Fix test breakage on MySQLAndrew Godwin
2014-06-16Fixed #22851: BinaryView wasn't getting a binary defaultAndrew Godwin
2014-06-16Renamed DatabaseFeature.supports_check_constraints to ↵Tim Graham
supports_column_check_constraints. Thanks maxi for the suggestion.
2014-05-08Appeased flake8.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-26Fix many many typos in comments throughout the codebaseAlex Gaynor
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-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()'.
2014-01-25Fixed a failing schema assertion.Simon Charette
BooleanFields are stored as TINYINT(1) on MySQL.
2014-01-25Fixed #21783: More SQLite default fun with nulls.Andrew Godwin
2014-01-20Fixed two test failures under OracleShai Berger
2014-01-19Fixed #21783: Use defaults for adding NOT NULL on sqliteAndrew Godwin
2013-12-27Amend test table name so it doesn't clash.Ramiro Morales
Refs #21692 and 3efd1b8b939.
2013-12-27Fixed #21692 -- Quote table name when creating it.Ramiro Morales
2013-12-24Renamed AppCache to Apps.Aymeric Augustin
Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
2013-12-22Moved apps back in the toplevel django namespace.Aymeric Augustin
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
2013-12-17Deborgified the app cache.Aymeric Augustin
Improved Andrew's hack to create temporary app caches to handle migrations. Now the main app cache has a "master" flag set to True (which is a non-default keyword argument, thus unlikely to be used by mistake). Other app cache instances have "master" set to False. The only sanctioned way to access the app cache is by importing django.core.apps.app_cache. If you were instanciating an app cache and relying on the Borg pattern, you'll have to refactor your code.
2013-12-17Moved the new app cache inside core.Aymeric Augustin
2013-12-17Moved django.db.models.loading to django.apps.cache.Aymeric Augustin
This commit doesn't contain any code changes; it's purely a refactoring.
2013-12-11Fix altering of SERIAL columns and InnoDB being picky about FK changesAndrew Godwin
2013-11-25flake8 fixAlex Gaynor