Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #470 -- Added support for database defaults on fields. | Ian Foote | 2023-05-12 | 1 | -1/+3 |
| | | | | | | | | Special thanks to Hannes Ljungberg for finding multiple implementation gaps. Thanks also to Simon Charette, Adam Johnson, and Mariusz Felisiak for reviews. | ||||
* | Fixed #34553 -- Fixed improper % escaping of literal in constraints. | Simon Charette | 2023-05-10 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Proper escaping of % in string literals used when defining constaints was attempted (a8b3f96f6) by overriding quote_value of Postgres and Oracle schema editor. The same approach was used when adding support for constraints to the MySQL/MariaDB backend (1fc2c70). Later on it was discovered that this approach was not appropriate and that a preferable one was to pass params=None when executing the constraint creation DDL to avoid any form of interpolation in the first place (42e8cf47). When the second patch was applied the corrective of the first were not removed which caused % literals to be unnecessary doubled. This flew under the radar because the existings test were crafted in a way that consecutive %% didn't catch regressions. This commit introduces an extra test for __exact lookups which highlights more adequately % doubling problems but also adjust a previous __endswith test to cover % doubling problems (%\% -> %%\%%). Thanks Thomas Kolar for the report. Refs #32369, #30408, #30593. | ||||
* | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | 2023-02-01 | 1 | -1/+0 |
| | | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 | ||||
* | Fixed #34219 -- Preserved Char/TextField.db_collation when altering column type. | Mariusz Felisiak | 2022-12-22 | 1 | -12/+11 |
| | | | | | | | This moves setting a database collation to the column type alteration as both must be set at the same time. This should also avoid another layer of the column type alteration when adding database comments support (#18468). | ||||
* | Fixed #33881 -- Added support for database collations to ↵ | Mariusz Felisiak | 2022-08-02 | 1 | -2/+4 |
| | | | | ArrayField(Char/TextFields). | ||||
* | Refs #33671 -- Fixed migrations crash when adding collation to a primary key ↵ | Mariusz Felisiak | 2022-04-29 | 1 | -0/+8 |
| | | | | on Oracle. | ||||
* | Updated Oracle docs links to Oracle 21c. | Mariusz Felisiak | 2022-03-29 | 1 | -1/+1 |
| | |||||
* | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | 2022-02-07 | 1 | -4/+2 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 1 | -34/+64 |
| | |||||
* | Refs #33476 -- Refactored problematic code before reformatting by Black. | Mariusz Felisiak | 2022-02-03 | 1 | -4/+10 |
| | | | | | | | | | | | | | | | | | In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], ) | ||||
* | Fixed #33358 -- Fixed handling timedelta < 1 day in schema operations on Oracle. | mdalp | 2021-12-14 | 1 | -0/+3 |
| | |||||
* | Fixed #33125 -- Avoided redundant unique constraint when converting a ↵ | Jordan Bae | 2021-09-28 | 1 | -6/+0 |
| | | | | non-unique field to primary key on MySQL and PostgreSQL. | ||||
* | Fixed #33057 -- Fixed recreation of foreign key constraints in m2m tables ↵ | Mariusz Felisiak | 2021-08-31 | 1 | -1/+14 |
| | | | | when altering type of referenced primary key on Oracle. | ||||
* | Fixed #32425 -- Fixed adding nullable field with default on MySQL. | Jordan Bae | 2021-02-09 | 1 | -0/+1 |
| | | | | Thanks Simon Charette for the review. | ||||
* | Fixed #31777 -- Added support for database collations to Char/TextFields. | Tom Carrick | 2020-09-21 | 1 | -0/+14 |
| | | | | Thanks Simon Charette and Mariusz Felisiak for reviews. | ||||
* | Fixed #24533 -- Dropped PostgreSQL sequence and Oracle identity when ↵ | Tim Graham | 2020-08-24 | 1 | -0/+11 |
| | | | | migrating away from AutoField. | ||||
* | Simplified imports from django.db and django.contrib.gis.db. | Nick Pope | 2020-02-04 | 1 | -1/+1 |
| | |||||
* | Fixed #30661 -- Added models.SmallAutoField. | Nick Pope | 2019-08-02 | 1 | -1/+1 |
| | |||||
* | Fixed #30408 -- Fixed crash when adding check constraints with LIKE operator ↵ | Simon Charette | 2019-04-30 | 1 | -1/+1 |
| | | | | | | | | | | | | | | on Oracle and PostgreSQL. The LIKE operator wildcard generated for contains, startswith, endswith and their case-insensitive variant lookups was conflicting with parameter interpolation on CREATE constraint statement execution. Ideally we'd delegate parameters interpolation in DDL statements on backends that support it but that would require backward incompatible changes to the Index and Constraint SQL generating methods. Thanks David Sanders for the report. | ||||
* | Updated Oracle docs links to Oracle 18c. | Mariusz Felisiak | 2019-02-07 | 1 | -1/+2 |
| | |||||
* | Fixed #30108 -- Allowed adding foreign key constraints in the same statement ↵ | Dan Tao | 2019-01-29 | 1 | -0/+1 |
| | | | | that adds a field. | ||||
* | Fixed #29547 -- Added support for partial indexes. | Mads Jensen | 2018-10-29 | 1 | -0/+1 |
| | | | | | Thanks to Ian Foote, Mariusz Felisiak, Simon Charettes, and Markus Holtermann for comments and feedback. | ||||
* | Fixed #29496 -- Fixed crash on Oracle when converting a non-unique field to ↵ | Mariusz Felisiak | 2018-06-17 | 1 | -0/+6 |
| | | | | | primary key. Thanks Tim Graham for the review. | ||||
* | Used bytes.hex() and bytes.fromhex() to simplify. | Sergey Fedoseev | 2017-11-23 | 1 | -3/+1 |
| | |||||
* | Fixed #26682 -- Added support for Oracle identity columns. | Mariusz Felisiak | 2017-06-01 | 1 | -4/+41 |
| | | | | Thanks Shai Berger and Tim Graham for reviews. | ||||
* | Fixed #27859 -- Ignored db_index for TextField/BinaryField on Oracle and MySQL. | Mariusz Felisiak | 2017-05-23 | 1 | -0/+7 |
| | | | Thanks Zubair Alam for the initial patch and Tim Graham for the review. | ||||
* | Fixed force_text() import in Oracle backend. | Tim Graham | 2017-04-27 | 1 | -1/+1 |
| | |||||
* | Updated Oracle docs links to Oracle 12c. | Mariusz Felisiak | 2017-04-21 | 1 | -1/+1 |
| | |||||
* | Refs #27656 -- Updated django.db docstring verbs according to PEP 257. | Anton Samarchyan | 2017-02-28 | 1 | -4/+2 |
| | |||||
* | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | 2017-01-25 | 1 | -3/+3 |
| | |||||
* | Refs #23919 -- Removed six.<various>_types usage | Claude Paroz | 2017-01-18 | 1 | -4/+3 |
| | | | | Thanks Tim Graham and Simon Charette for the reviews. | ||||
* | Fixed #27323 -- Optimized Oracle introspection by using USER_SEQUENCES ↵ | Mariusz Felisiak | 2016-10-12 | 1 | -2/+2 |
| | | | | instead of USER_CATALOG. | ||||
* | Refs #25002 -- Supported textual to temporal column alteration on Oracle. | Simon Charette | 2015-06-24 | 1 | -12/+27 |
| | | | | Thanks to Tim Graham for the report and Shai Berger for the review. | ||||
* | Fixed #24200 -- Made introspection bypass statement cache | Josh Smeaton | 2015-02-10 | 1 | -3/+0 |
| | |||||
* | Sorted imports with isort; refs #23860. | Tim Graham | 2015-02-06 | 1 | -3/+3 |
| | |||||
* | Fixed #22603 -- Reorganized classes in django.db.backends. | Tim Graham | 2015-01-14 | 1 | -1/+1 |
| | |||||
* | Limited lines to 119 characters in django/ | Tim Graham | 2014-09-05 | 1 | -1/+2 |
| | | | | refs #23395. | ||||
* | Added django.utils.six.buffer_types | Shai Berger | 2014-06-13 | 1 | -2/+1 |
| | | | | and used it in the Oracle SchemaEditor. Refs #22715. | ||||
* | Fixed #22715: Corrected sql for defaults of BinaryField on Oracle with Python3 | Shai Berger | 2014-05-28 | 1 | -2/+4 |
| | | | | | While at it, fixed a problem in returning empty values (still with BinaryField/Oracle/Python3). | ||||
* | Fixed #22649: Beefed up quote_value | Andrew Godwin | 2014-05-20 | 1 | -1/+4 |
| | |||||
* | Fixed #21844: Move quote_parameter off of Operations and rename | Andrew Godwin | 2014-02-09 | 1 | -1/+13 |
| | |||||
* | Fixed a number of flake8 errors -- particularly around unused imports and ↵ | Alex Gaynor | 2013-09-06 | 1 | -4/+3 |
| | | | | local variables | ||||
* | Adding 'sqlmigrate' command and quote_parameter to support it. | Andrew Godwin | 2013-09-06 | 1 | -8/+1 |
| | |||||
* | Fix Oracle's default handling and schema-prepared-statement issue | Andrew Godwin | 2013-08-23 | 1 | -0/+12 |
| | |||||
* | Oracle schema backend, passes most tests and is pretty complete. | Andrew Godwin | 2013-08-13 | 1 | -0/+77 |
| | |||||
* | Start of getting Oracle to do schema stuff | Andrew Godwin | 2013-08-12 | 1 | -1/+10 |
| | |||||
* | Stubbed-out oracle schema file | Andrew Godwin | 2012-09-07 | 1 | -0/+5 |