summaryrefslogtreecommitdiff
path: root/django/db/backends/oracle/schema.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #470 -- Added support for database defaults on fields.Ian Foote2023-05-121-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 Charette2023-05-101-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 Smith2023-02-011-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 Felisiak2022-12-221-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 Felisiak2022-08-021-2/+4
| | | | ArrayField(Char/TextFields).
* Refs #33671 -- Fixed migrations crash when adding collation to a primary key ↵Mariusz Felisiak2022-04-291-0/+8
| | | | on Oracle.
* Updated Oracle docs links to Oracle 21c.Mariusz Felisiak2022-03-291-1/+1
|
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-4/+2
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-34/+64
|
* Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak2022-02-031-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.mdalp2021-12-141-0/+3
|
* Fixed #33125 -- Avoided redundant unique constraint when converting a ↵Jordan Bae2021-09-281-6/+0
| | | | non-unique field to primary key on MySQL and PostgreSQL.
* Fixed #33057 -- Fixed recreation of foreign key constraints in m2m tables ↵Mariusz Felisiak2021-08-311-1/+14
| | | | when altering type of referenced primary key on Oracle.
* Fixed #32425 -- Fixed adding nullable field with default on MySQL.Jordan Bae2021-02-091-0/+1
| | | | Thanks Simon Charette for the review.
* Fixed #31777 -- Added support for database collations to Char/TextFields.Tom Carrick2020-09-211-0/+14
| | | | Thanks Simon Charette and Mariusz Felisiak for reviews.
* Fixed #24533 -- Dropped PostgreSQL sequence and Oracle identity when ↵Tim Graham2020-08-241-0/+11
| | | | migrating away from AutoField.
* Simplified imports from django.db and django.contrib.gis.db.Nick Pope2020-02-041-1/+1
|
* Fixed #30661 -- Added models.SmallAutoField.Nick Pope2019-08-021-1/+1
|
* Fixed #30408 -- Fixed crash when adding check constraints with LIKE operator ↵Simon Charette2019-04-301-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 Felisiak2019-02-071-1/+2
|
* Fixed #30108 -- Allowed adding foreign key constraints in the same statement ↵Dan Tao2019-01-291-0/+1
| | | | that adds a field.
* Fixed #29547 -- Added support for partial indexes.Mads Jensen2018-10-291-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 Felisiak2018-06-171-0/+6
| | | | | primary key. Thanks Tim Graham for the review.
* Used bytes.hex() and bytes.fromhex() to simplify.Sergey Fedoseev2017-11-231-3/+1
|
* Fixed #26682 -- Added support for Oracle identity columns.Mariusz Felisiak2017-06-011-4/+41
| | | | Thanks Shai Berger and Tim Graham for reviews.
* Fixed #27859 -- Ignored db_index for TextField/BinaryField on Oracle and MySQL.Mariusz Felisiak2017-05-231-0/+7
| | | Thanks Zubair Alam for the initial patch and Tim Graham for the review.
* Fixed force_text() import in Oracle backend.Tim Graham2017-04-271-1/+1
|
* Updated Oracle docs links to Oracle 12c.Mariusz Felisiak2017-04-211-1/+1
|
* Refs #27656 -- Updated django.db docstring verbs according to PEP 257.Anton Samarchyan2017-02-281-4/+2
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-3/+3
|
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-4/+3
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Fixed #27323 -- Optimized Oracle introspection by using USER_SEQUENCES ↵Mariusz Felisiak2016-10-121-2/+2
| | | | instead of USER_CATALOG.
* Refs #25002 -- Supported textual to temporal column alteration on Oracle.Simon Charette2015-06-241-12/+27
| | | | Thanks to Tim Graham for the report and Shai Berger for the review.
* Fixed #24200 -- Made introspection bypass statement cacheJosh Smeaton2015-02-101-3/+0
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-3/+3
|
* Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham2015-01-141-1/+1
|
* Limited lines to 119 characters in django/Tim Graham2014-09-051-1/+2
| | | | refs #23395.
* Added django.utils.six.buffer_typesShai Berger2014-06-131-2/+1
| | | | and used it in the Oracle SchemaEditor. Refs #22715.
* Fixed #22715: Corrected sql for defaults of BinaryField on Oracle with Python3Shai Berger2014-05-281-2/+4
| | | | | While at it, fixed a problem in returning empty values (still with BinaryField/Oracle/Python3).
* Fixed #22649: Beefed up quote_valueAndrew Godwin2014-05-201-1/+4
|
* Fixed #21844: Move quote_parameter off of Operations and renameAndrew Godwin2014-02-091-1/+13
|
* Fixed a number of flake8 errors -- particularly around unused imports and ↵Alex Gaynor2013-09-061-4/+3
| | | | local variables
* Adding 'sqlmigrate' command and quote_parameter to support it.Andrew Godwin2013-09-061-8/+1
|
* Fix Oracle's default handling and schema-prepared-statement issueAndrew Godwin2013-08-231-0/+12
|
* Oracle schema backend, passes most tests and is pretty complete.Andrew Godwin2013-08-131-0/+77
|
* Start of getting Oracle to do schema stuffAndrew Godwin2013-08-121-1/+10
|
* Stubbed-out oracle schema fileAndrew Godwin2012-09-071-0/+5