| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Fixed a regression introduced in e1427cc609fa6ab247501b101cfb3c0092aba55b when running tests in reverse order.
|
|
|
|
|
|
|
| |
equality to prevent infinite migrations
Thanks Sayid Munawar and Tim Graham for the report, investigation and
review.
|
| |
|
|
|
|
| |
on_delete for ForeignKey/OneToOneField
|
|
|
|
|
|
|
| |
The new attribute is checked when the `migrate --fake-initial` option
is used. initial will be set to True for all initial migrations (this
is particularly useful when initial migrations are split) as well as
for squashed migrations.
|
|
|
|
| |
Thanks Andriy Sokolovskiy and Simon Charette for the review.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
AlterFooTogether
The idea behind this change is, that AlterUniqueTogether,
AlterIndexTogether and AlterOrderWithRespectTo can always be moved after
an Add/Alter/Rename/RemoveField operation if they don't refer to the
respective field and are not empty sets / None.
Combined with the optimizations of duplicate AlterUniqueTogether,
AlterIndexTogether, and AlterOrderWithRespectTo operations from
128caa1e16ec2627737748f75c8e55600a3df97f, these operations are optimized
in a later round of the optimizer.
Thanks Tim Graham for the review.
|
|
|
|
|
|
|
| |
tuple and dict values
Nested deconstruction should recursively deconstruct items within list,
tuple and dict values.
|
|
|
|
|
| |
Thanks to David Sanders for the report and test and Simon Charette for
the review.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
in migrations when changing blank
Thanks Mark Tranchant for the report an Tim Graham for the test and
review.
|
| |
|
|
|
|
|
|
| |
migrations
Thanks Tim Graham and Markus Holtermann for the reviews.
|
|
|
|
|
|
| |
migration state.
refs #22563
|
|
|
|
|
|
| |
concrete fields and vice versa
Thanks to Michael D. Hoyle for the report and Tim Graham for the review.
|
|
|
|
|
|
|
|
|
| |
changing Meta.managed.
The migrations autodetector now issues AlterModelOptions operations for
Meta.managed changes instead of DeleteModel + CreateModel.
Thanks iambibhas for the report and Simon and Markus for review.
|
|
|
|
|
|
| |
Text/CharField.
A default is no longer required.
|
|
|
|
|
|
|
| |
managers in migration
Thanks to Shai Berger, Loïc Bistuer, Simon Charette, Andrew Godwin,
Tim Graham, Carl Meyer, and others for their review and input.
|
|
|
|
| |
table inheritance
|
|
|
|
| |
field that's part of index/unique_together.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
operation dependency resolution.
This removes the concept of equality between operations to guarantee
compatilibity with Python 3.
Python 3 requires equality to result in identical object hashes. It's
impossible to implement a unique hash that preserves equality as
operations such as field creation depend on being able to accept
arbitrary dicts that cannot be hashed reliably.
Thanks Klaas van Schelven for the original patch in
13d613f80011852404198dfafd1f09c0c0ea42e6.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
dependency resolution"
This commit broke the tests on Python 3.
This reverts commit 13d613f80011852404198dfafd1f09c0c0ea42e6.
|
|
|
|
|
|
| |
resolution
rather than an ad-hoc algorithm
|
|
|
|
| |
Django test suite.
|
|
|
|
|
|
| |
autodetector orders unique/index_together
Thanks to Naddiseo for the report and Tim Graham for the review
|
|
|
|
|
|
| |
in Meta.db_table.
Thanks Naddiseo for reporting.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
3282.
Thanks Collin Anderson for the review.
|
|
|
|
|
|
| |
model migrations.
Thanks sky-chen for the report.
|
|
|
|
|
|
| |
unique/index_together.
Thanks fwkroon for the report.
|
|
|
|
|
|
| |
deep_deconstruct migration serialization process.
Thanks Sam Hartsfield for the report.
|
|
|
|
| |
command
|
|
|
|
| |
migration error in makemigrations.
|
|
|
|
| |
dependency resolution during makemigrations
|
| |
|
|
|
|
| |
create/add
|
|
|
|
| |
ignored by ops
|
|
|
|
|
|
| |
autodetector.
Makes declined or missed renames still work (but drop data).
|
|
|
|
| |
state right
|
| |
|
|
|
|
| |
autodetector
|
|\
| |
| | |
Fixed #23071 -- Use last migration's name in dependency to other app
|
| |
| |
| |
| |
| |
| |
| |
| | |
to other app
Changed the autodetector to lookup the name of the other app's last
migration in the graph and use that as dependency instead of using
__latest__.
|
|/
|
|
| |
unique/index_together.
|
| |
|
|
|
|
|
|
| |
dependencies.
Thanks semenov for the report and Florian for investigation.
|
| |
|