<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/django.git/tests/migrations, branch main</title>
<subtitle>github.com: django/django.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/'/>
<entry>
<title>Fixed #34568 -- Made makemigrations --update respect --name option.</title>
<updated>2023-05-17T11:14:43+00:00</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2023-05-17T11:14:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=c52f4295f254e1c14af769d22b1a5f516a941f58'/>
<id>c52f4295f254e1c14af769d22b1a5f516a941f58</id>
<content type='text'>
Thanks David Sanders for the report.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Thanks David Sanders for the report.</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #470 -- Added support for database defaults on fields.</title>
<updated>2023-05-12T17:11:40+00:00</updated>
<author>
<name>Ian Foote</name>
<email>python@ian.feete.org</email>
</author>
<published>2020-11-22T22:27:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=7414704e88d73dafbcfbb85f9bc54cb6111439d3'/>
<id>7414704e88d73dafbcfbb85f9bc54cb6111439d3</id>
<content type='text'>
Special thanks to Hannes Ljungberg for finding multiple implementation
gaps.

Thanks also to Simon Charette, Adam Johnson, and Mariusz Felisiak for
reviews.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Special thanks to Hannes Ljungberg for finding multiple implementation
gaps.

Thanks also to Simon Charette, Adam Johnson, and Mariusz Felisiak for
reviews.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #34553 -- Fixed improper % escaping of literal in constraints.</title>
<updated>2023-05-10T15:25:57+00:00</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2023-05-10T02:34:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=ffff17d4b0117cce59f65c9f56fa164694eafd23'/>
<id>ffff17d4b0117cce59f65c9f56fa164694eafd23</id>
<content type='text'>
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 (%\% -&gt; %%\%%).

Thanks Thomas Kolar for the report.

Refs #32369, #30408, #30593.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 (%\% -&gt; %%\%%).

Thanks Thomas Kolar for the report.

Refs #32369, #30408, #30593.
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #34553 -- Split constraint escaping test in subtests.</title>
<updated>2023-05-10T15:25:57+00:00</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2023-05-10T02:18:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=e0f8104a968d316925f736e961a63bef73a686b4'/>
<id>e0f8104a968d316925f736e961a63bef73a686b4</id>
<content type='text'>
This ensures that constraint violations are tested in isolation from
each other as an IntegrityError only ensures a least one constraint is
violated.

For example, the assertion added in 42e8cf4 break both the
name_constraint_rhs and the rebate_constraint constraints and thus
doesn't constitute a proper regression test. Refs #32369.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This ensures that constraint violations are tested in isolation from
each other as an IntegrityError only ensures a least one constraint is
violated.

For example, the assertion added in 42e8cf4 break both the
name_constraint_rhs and the rebate_constraint constraints and thus
doesn't constitute a proper regression test. Refs #32369.
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #34534 -- Reduced Add/RemoveConstraint and Add/RenameIndex operations when optimizing migrations.</title>
<updated>2023-05-09T10:45:09+00:00</updated>
<author>
<name>Akash Kumar Sen</name>
<email>Akash-Kumar-Sen@users.noreply.github.com</email>
</author>
<published>2023-05-08T17:54:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=92f0017133c2d31fbd527bab7b08d4d49a582143'/>
<id>92f0017133c2d31fbd527bab7b08d4d49a582143</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #34529, Refs #34525 -- Reduced index operations with Meta.indexes/index_together when optimizing migrations.</title>
<updated>2023-05-03T11:06:19+00:00</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2023-05-03T11:06:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=8e2460d599aec95f8cfe514d3cc8acdd4ca4b1fb'/>
<id>8e2460d599aec95f8cfe514d3cc8acdd4ca4b1fb</id>
<content type='text'>
This makes squashing migrations an available path for changing
Meta.index_together, which is deprecated, to Meta.indexes.

Follow up to f81032572107846922745b68d5b7191058fdd5f5.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes squashing migrations an available path for changing
Meta.index_together, which is deprecated, to Meta.indexes.

Follow up to f81032572107846922745b68d5b7191058fdd5f5.</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #34528 -- Reduced Add/RemoveIndex operations when optimizing migrations.</title>
<updated>2023-05-01T16:57:24+00:00</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2023-05-01T16:57:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=191f6a9a4586b5e5f79f4f42f190e7ad4bbacc84'/>
<id>191f6a9a4586b5e5f79f4f42f190e7ad4bbacc84</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #34388 -- Allowed using choice enumeration types directly on model and form fields.</title>
<updated>2023-03-21T18:44:41+00:00</updated>
<author>
<name>T. Franzel</name>
<email>tfranzel@users.noreply.github.com</email>
</author>
<published>2023-03-10T23:34:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=a2eaea8f22305b57dff3ab13add2e2887287bb6f'/>
<id>a2eaea8f22305b57dff3ab13add2e2887287bb6f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #34420 -- Corrected the order of imports in generated migration files.</title>
<updated>2023-03-20T05:23:08+00:00</updated>
<author>
<name>Andy Chosak</name>
<email>andy@chosak.org</email>
</author>
<published>2023-03-18T18:02:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=b295b311712b598c053f7fa8cf6e6882217e35d9'/>
<id>b295b311712b598c053f7fa8cf6e6882217e35d9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #34333 -- Fixed migration operations ordering when adding index/constraint on new foreign key.</title>
<updated>2023-03-10T06:05:11+00:00</updated>
<author>
<name>Durval Carvalho</name>
<email>durvalcsouza@outlook.com</email>
</author>
<published>2023-03-07T20:00:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/django.git/commit/?id=4b1bfea2846f66f504265cec46ee1fe94ee9c98b'/>
<id>4b1bfea2846f66f504265cec46ee1fe94ee9c98b</id>
<content type='text'>
Thanks Simon Charette and David Wobrock for reviews.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Thanks Simon Charette and David Wobrock for reviews.
</pre>
</div>
</content>
</entry>
</feed>
