summaryrefslogtreecommitdiff
path: root/tests/schema/tests.py
AgeCommit message (Collapse)Author
2015-08-08Used skipUnlessDBFeature where appropriate.Simon Charette
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-15Fixed #25128 -- Fixed SQLite SchemaEditor crash when adding a ForeignObject ↵Tim Graham
field.
2015-06-24Refs #25002 -- Supported textual to temporal column alteration on Oracle.Simon Charette
Thanks to Tim Graham for the report and Shai Berger for the review.
2015-06-22Fixed #25002 -- Used PostgreSQL column type alteration USING clause.Simon Charette
Thanks to Dirk Uys for the report.
2015-06-15Fixed #24972 -- Fixed removing unique_together indexes on MySQL.Adam Brenecki
2015-06-02Applied db_table conversion to fix schema tests on Oracle.Tim Graham
2015-06-02Fixed #24893 -- Fixed lack of unique constraint when changing a field from ↵Tim Graham
primary_key=True to unique=True
2015-06-02Fixed #24892 -- Fixed quoting of SQL when renaming a field to AutoField in ↵Tim Graham
PostgreSQL
2015-05-30Fixed #24846 -- Added support to MySQL SchemaEditor for all blob/text data typesAdam Chainz
2015-05-28Fixed #24817 -- Prevented loss of null info in MySQL field renaming.Andriy Sokolovskiy
2015-05-18Fixed #24812 -- Fixed app registry RuntimeWarnings in schema and migrations ↵Tim Graham
tests.
2015-05-15Fixed #24757 -- Recreated MySQL index when needed during combined index removalClaude Paroz
Thanks Thomas Recouvreux for the report and Tim Graham for the tests and review.
2015-04-18Fixed #24595 Oracle test failureShai Berger
The only problem for Oracle was the test, which tested nullity on text/char fields -- but Oracle interprets_empty_strings_as_null.
2015-04-17Fixed #24595 -- Prevented loss of null info in MySQL field alterationClaude Paroz
Thanks Simon Percivall for the report, and Simon Charette and Tim Graham for the reviews.
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-07Fixed #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.
2015-02-19Fixed #24307: Avoided redundant column nullability modifications on OracleShai Berger
Thanks Joris Benschop for the report, and Tim Graham for the tests.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-06Fixed small regression caused by 0204714b0bdf10d7558ee106de9a718407f3ec5aMarkus Holtermann
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.
2015-02-05Cleaned up schema testsMarkus Holtermann
Thanks Tim Graham for the review.
2015-01-31Fixed #24245 -- Added introspection for database defaults.Tim Graham
Needed for tests for migrations handling of database defaults.
2015-01-22Fixed #24104 -- Fixed check to look on field.many_to_many instead of class ↵Andriy Sokolovskiy
instance
2015-01-20Refs #24163 -- Fixed failing Oracle test when migrating from ForeignKey to ↵Markus Holtermann
OneToOneField Thanks Tim Graham for review
2015-01-19Fixed #24163 -- Removed unique constraint after index on MySQLMarkus Holtermann
Thanks Łukasz Harasimowicz for the report.
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