| Age | Commit message (Collapse) | Author |
|
Thanks to Nick Pope for spotting the bug in Code Review.
Co-Authored-By: Nick Pope <nick@nickpope.me.uk>
|
|
SQLite.
|
|
This flag is currently unused on SQLite because it doesn't support
dropping a DEFAULT clause, however it requires literal defaults, rather
than parameterized ones, so we can set it for clarity.
|
|
|
|
|
|
|
|
Oracle.
|
|
Co-Authored-By: Nick Pope <nick@nickpope.me.uk>
|
|
The CONN_HEALTH_CHECKS setting can be used to enable database
connection health checks for Django's persistent DB connections.
Thanks Florian Apolloner for reviews.
|
|
Unneeded since c0e3c65b9d1b26cfc38137b7666ef0e108aab77f.
|
|
supports_combined_alters is False by default.
|
|
BaseDatabaseOperations.adapt_datetimefield_value()/adapt_timefield_value() crash with expressions.
|
|
SQLCompiler.
|
|
DatabaseIntrospection._get_foreign_key_constraints().
The get_relations() method returns the exact same data in a more generic
format.
|
|
Previous solution was using brittle and complex parsing rules to
extract them from the SQL used to define the tables.
Removed a now unnecessary unit test that ensured the removed parsing
logic accounted for optional spacing.
|
|
tables.
All the other backends behave this way and we had to make adjustments
to our test suite to account for this discrepancy.
This also allows SQLite's get_relations() not to raise on a nonexistent
table while making sure the InspectDBTestCase.test_introspection_errors
test which ensures an error during introspection is surfaced in
generated models files still passes.
|
|
Co-Authored-By: Adam Johnson <me@adamj.eu>
|
|
Thanks yakimka for the report.
Regression in fde9b7d35e4e185903cc14aa587ca870037941b1.
|
|
Thanks Simon Charette for the report.
|
|
The foreign keys are "in" the given table, not "to" it.
|
|
boolean value on MySQL.
Performance regression in 37e6c5b79bd0529a3c85b8c478e4002fd33a2a1d.
Thanks Todor Velichkov for the report.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
|
|
DatabaseFeatures.supports_mixed_date_datetime_comparisons.
|
|
BaseDatabaseFeatures.has_case_insensitive_like to False.
|
|
Thanks Simon Charette for the implementation idea.
|
|
BaseDatabaseOperations.format_for_duration_arithmetic() stub method.
|
|
indexes/unique constraints on SQLite.
This adjusts Expressions.rename_table_references() to only update alias
when needed.
Regression in 83fcfc9ec8610540948815e127101f1206562ead.
Co-authored-by: Simon Charette <charettes@users.noreply.github.com>
|
|
md5 is not an approved algorithm in FIPS mode, and trying to instantiate
a hashlib.md5() will fail when the system is running in FIPS mode.
md5 is allowed when in a non-security context. There is a plan to add a
keyword parameter (usedforsecurity) to hashlib.md5() to annotate whether
or not the instance is being used in a security context.
In the case where it is not, the instantiation of md5 will be allowed.
See https://bugs.python.org/issue9216 for more details.
Some downstream python versions already support this parameter. To
support these versions, a new encapsulation of md5() has been added.
This encapsulation will pass through the usedforsecurity parameter in
the case where the parameter is supported, and strip it if it is not.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
|
|
|
|
|
|
PostgreSQL.
|
|
non-unique field to primary key on MySQL and PostgreSQL.
|
|
|
|
Thanks to Adam Johnson, Aymeric Augustin, David Smith, Mariusz Felisiak, Nick
Pope, and Paul Ganssle for reviews.
|
|
Thanks Matt Hoskins for the report.
|
|
when altering type of referenced primary key on Oracle.
|
|
|
|
This also improves performance on MySQL instances with a large number
of databases, since querying the information_schema table can be very
slow
|
|
|
|
This eliminates an unneeded call to datetime.now() when
field.get_internal_type() equals "DateTimeField".
|
|
BaseDatabaseSchemaEditor._iter_column_sql().
|
|
BaseDatabaseSchemaEditor.column_sql().
|
|
This also removes unnecessary comments with the previous spelling.
AP Stylebook has a short entry to advise the preferred spelling for
"en-us". "Afterwards" is preferred in British English.
|
|
type of referenced primary key with MTI.
Follow up to 325d7710ce9f6155bb55610ad6b4580d31263557.
|
|
primary key with MTI.
|
|
Thanks to Simon Charette and Adam Johnson for the reviews.
|
|
QuerySet.filter().
Thanks Hannes Ljungberg and Simon Charette for reviews.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
|
|
|
|
The utf8 character set (and related collations) is by default an alias
for utf8mb3 on MariaDB 10.6+.
|
|
|
|
This is useful when working with database routing as you want to know
where each query is being executed.
Co-authored-by: David Winterbottom <david.winterbottom@gmail.com>
|