Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/schema
Commit message (Collapse)AuthorAgeFilesLines
* Used SchemaEditor.delete_model() for teardown in schema ↵Tim Graham2015-10-161-33/+27
| | | | | | | | | tests. Some third-party database backends (MSSQL) have custom delete_model() requirements that must be executed. Thanks Michael Manfre for the initial patch and review.
* Refs #18081 -- Asserted db constraints are created for ↵Simon Charette2015-09-231-0/+30
| | | | fk to proxy models.
* Fix import sorting problem.Aymeric Augustin2015-09-211-3/+2
|
* Renamed descriptor classes for related objects.Aymeric Augustin2015-09-211-2/+2
| | | | | | | | | | | | 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.
* Fixed #25393 -- Fixed MySQL crash when adding text/blob ↵Ville Skyttä2015-09-141-0/+12
| | | | field with unhashable default.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-3/+11
|
* Used skipUnlessDBFeature where appropriate.Simon Charette2015-08-081-15/+17
|
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-282-23/+27
| | | | on_delete for ForeignKey/OneToOneField
* Fixed #25128 -- Fixed SQLite SchemaEditor crash when ↵Tim Graham2015-07-152-5/+22
| | | | adding a ForeignObject field.
* Refs #25002 -- Supported textual to temporal column ↵Simon Charette2015-06-251-3/+38
| | | | | | alteration on Oracle. Thanks to Tim Graham for the report and Shai Berger for the review.
* Fixed #25002 -- Used PostgreSQL column type alteration ↵Simon Charette2015-06-221-0/+14
| | | | | | USING clause. Thanks to Dirk Uys for the report.
* Fixed #24972 -- Fixed removing unique_together indexes ↵Adam Brenecki2015-06-152-2/+34
| | | | on MySQL.
* Applied db_table conversion to fix schema tests on Oracle.Tim Graham2015-06-031-2/+3
|
* Fixed #24893 -- Fixed lack of unique constraint when ↵Tim Graham2015-06-022-0/+40
| | | | changing a field from primary_key=True to unique=True
* Fixed #24892 -- Fixed quoting of SQL when renaming a ↵Tim Graham2015-06-022-6/+30
| | | | field to AutoField in PostgreSQL
* Fixed #24846 -- Added support to MySQL SchemaEditor for ↵Adam Chainz2015-05-312-1/+29
| | | | all blob/text data types
* Fixed #24817 -- Prevented loss of null info in MySQL ↵Andriy Sokolovskiy2015-05-282-2/+30
| | | | field renaming.
* Fixed #24812 -- Fixed app registry RuntimeWarnings in ↵Tim Graham2015-05-181-3/+10
| | | | schema and migrations tests.
* Fixed #24757 -- Recreated MySQL index when needed during ↵Claude Paroz2015-05-151-0/+36
| | | | | | | combined index removal Thanks Thomas Recouvreux for the report and Tim Graham for the tests and review.
* Fixed #24658 -- Added missing Meta attribute in schema testsClaude Paroz2015-04-191-0/+3
| | | | | Without that, the Note model would be initially created and then the tests using that model failed when run in isolation.
* Fixed #24595 Oracle test failureShai Berger2015-04-181-4/+21
| | | | | The only problem for Oracle was the test, which tested nullity on text/char fields -- but Oracle interprets_empty_strings_as_null.
* Fixed #24595 -- Prevented loss of null info in MySQL ↵Claude Paroz2015-04-171-0/+16
| | | | | | | field alteration Thanks Simon Percivall for the report, and Simon Charette and Tim Graham for the reviews.
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-252-14/+15
| | | | | | | | 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.
* Fixed #24447 -- Made migrations add FK constraints for ↵Jean-Louis Fuchs2015-03-071-0/+39
| | | | | | | existing columns When altering from e.g. an IntegerField to a ForeignKey, Django didn't add a constraint.
* Fixed #24307: Avoided redundant column nullability ↵Shai Berger2015-02-191-1/+32
| | | | | | modifications on Oracle Thanks Joris Benschop for the report, and Tim Graham for the tests.
* Merged ManyRelatedObjectsDescriptor and ↵Loic Bistuer2015-02-161-3/+3
| | | | | | | ReverseManyRelatedObjectsDescriptor and made all "many" related objects descriptors inherit from ForeignRelatedObjectsDescriptor.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-062-8/+13
|
* Fixed small regression caused by ↵Markus Holtermann2015-02-061-0/+8
| | | | | | | | 0204714b0bdf10d7558ee106de9a718407f3ec5a 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.
* Cleaned up schema testsMarkus Holtermann2015-02-053-431/+315
| | | | Thanks Tim Graham for the review.
* Fixed #24245 -- Added introspection for database defaults.Tim Graham2015-01-311-0/+50
| | | | Needed for tests for migrations handling of database defaults.
* Fixed #24104 -- Fixed check to look on ↵Andriy Sokolovskiy2015-01-222-0/+99
| | | | field.many_to_many instead of class instance
* Refs #24163 -- Fixed failing Oracle test when migrating ↵Markus Holtermann2015-01-201-24/+26
| | | | | | from ForeignKey to OneToOneField Thanks Tim Graham for review
* Fixed #24163 -- Removed unique constraint after index on ↵Markus Holtermann2015-01-192-3/+113
| | | | | | MySQL Thanks Łukasz Harasimowicz for the report.
* Fixed #12663 -- Formalized the Model._meta API for ↵Daniel Pyrathon2015-01-071-26/+26
| | | | | | | retrieving fields. Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
* Fixed #23581 -- Prevented extraneous DROP DEFAULT ↵Tim Graham2014-12-301-0/+4
| | | | | | statements. Thanks john_scott for the report and Markus Holtermann for review.
* Fixed refs #23987 test on Oracle.Tim Graham2014-12-161-1/+1
|
* Fixed #23987 -- Made SQLite SchemaEditor always use ↵Andriy Sokolovskiy2014-12-151-0/+24
| | | | effective_default().
* Fixed #23968 -- Replaced list comprehension with ↵Jon Dufresne2014-12-081-3/+3
| | | | generators and dict comprehension
* Fixed #23920 -- Fixed MySQL crash when adding blank=True ↵Tim Graham2014-12-042-1/+18
| | | | | | to TextField. Thanks wkornewald for the report and Markus Holtermann for review.
* Fixed typos using https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-041-1/+1
|
* Fixed #23738 -- Allowed migrating from NULL to NOT NULL ↵Markus Holtermann2014-10-312-1/+34
| | | | | | with the same default value Thanks to Andrey Antukh for the report.
* Fixed #23702 -- Fixed adding an explicit id field on SQLite.Tim Graham2014-10-231-0/+19
| | | | Thanks gavinwahl for the report.
* Fixed #23609 -- Fixed IntegrityError that prevented ↵Markus Holtermann2014-10-091-1/+34
| | | | | | altering a NULL column into a NOT NULL one due to existing rows Thanks to Simon Charette, Loic Bistuer and Tim Graham for the review.
* Fixed #22738 -- made finer distinctions for when Boolean ↵Shai Berger2014-09-271-1/+1
| | | | | | is not detected on Oracle Thanks Claude Paroz for partial fix and Simon Charrette for review
* Fixed #22738 -- Abstracted boolean field type introspectionClaude Paroz2014-09-261-9/+2
| | | | | Thanks maxi for the report, Shai Berger for his help with the patch and Tim Graham for the review.
* Fixed #23065 -- Quoted constraint names in SQL generated ↵Sergey Fedoseev2014-09-231-0/+50
| | | | by migrations.
* Removed unnecessary absolute_imports.Tim Graham2014-08-251-1/+0
|
* Fixed schema test for Oracle 11.2.0.1 which is used in ↵Shai Berger2014-08-221-0/+3
| | | | | | | | | | | Django Project's CI. 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).
* Fixed #23264: Schema backends honour db_constraintAndrew Godwin2014-08-092-2/+100
|
* Fixed #23091: CreateModel and AddField were clashing ↵Andrew Godwin2014-08-041-0/+42
| | | | with deferred SQL