summaryrefslogtreecommitdiff
path: root/tests/schema
AgeCommit message (Collapse)Author
2016-07-13[1.10.x] Fixed #26889 -- Fixed missing PostgreSQL index in ↵Jon Dufresne
SchemaEditor.add_field(). Backport of 2e4cfcd2b9a0984ad6c4087a5deebbf33413835c from master
2016-06-27[1.10.x] Refs #26034 -- Corrected a schema test to work with the correct ↵Jon Dufresne
field state. Backport of d47f6d75ef67dbd18abf2bb927753f739a9c117d from master
2016-06-21[1.10.x] Fixed #26781 -- Made table name case change a noop on SQLite.Simon Charette
SQLite disgresses from the SQL standard by ignoring case of quoted identifiers. Thanks to laozzzi for the report and Tim for the review. Backport of c2e62fd1aed093c4d9ff84e3d86e6a85c8aa1917 from master
2016-06-16[1.10.x] Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
Backport of 4f336f66523001b009ab038b10848508fd208b3b from master
2016-05-09Fixed #25005 -- Made date and time fields with auto_now/auto_now_add use ↵Iacopo Spalletti
effective default. Thanks to Andriy Sokolovskiy for initial patch.
2016-05-07Fixed #26593 -- Leveraged deferrable_sql() in SchemaEditorMarkus Holtermann
2016-05-03Normalized "an SQL" spelling.Ville Skyttä
2016-04-02Refs #26384, #24995 -- Avoided a module-level MySQL query in the schema tests.Michal Petrucha
2016-03-31Refs #26384, #24995 -- Skipped a schema test on older MySQL versions.Tim Graham
2016-03-29Fixed #26384 -- Fixed renaming the PK on a model with a self-referential FK ↵Alex Hill
on SQLite.
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2016-01-22Fixed #26116 -- Corrected schema's test_alter_implicit_id_to_explicit.Tim Graham
AUTOINCREMENT is dropped converting an AutoField to IntegerField which isn't the point of this test. MySQL would warn or error about this.
2016-01-08Fixed #26034 -- Fixed incorrect index handling on PostgreSQL on ↵Tim Graham
Char/TextField with unique=True and db_index=True. Thanks Simon Charette for review.
2016-01-08Added a helper function in schema tests.Tim Graham
2015-12-10Fixed #25412 -- Fixed missing PostgreSQL index on Char/TextField when using ↵Federico Frenguelli
AlterField. Thanks to Emanuele Palazzetti for the help.
2015-11-14Refs #25745 -- Avoided multiple registration of the same model in schema tests.Simon Charette
2015-10-16Used SchemaEditor.delete_model() for teardown in schema tests.Tim Graham
Some third-party database backends (MSSQL) have custom delete_model() requirements that must be executed. Thanks Michael Manfre for the initial patch and review.
2015-09-23Refs #18081 -- Asserted db constraints are created for fk to proxy models.Simon Charette
2015-09-21Fix import sorting problem.Aymeric Augustin
2015-09-21Renamed descriptor classes for related objects.Aymeric Augustin
The old names were downright confusing. Some seemed to mean the opposite of what the class actually did. The new names follow a consistent nomenclature: (Forward|Reverse)(ManyToOne|OneToOne|ManyToMany)Descriptor. I mentioned combinations that do not exist in the docstring in order to help people who would search for them in the code base.
2015-09-14Fixed #25393 -- Fixed MySQL crash when adding text/blob field with ↵Ville Skyttä
unhashable default.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
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-19Fixed #24658 -- Added missing Meta attribute in schema testsClaude Paroz
Without that, the Note model would be initially created and then the tests using that model failed when run in isolation.
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-16Merged ManyRelatedObjectsDescriptor and ReverseManyRelatedObjectsDescriptorLoic Bistuer
and made all "many" related objects descriptors inherit from ForeignRelatedObjectsDescriptor.
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!