| Age | Commit message (Collapse) | Author |
|
functional indexes 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>
Backport of 86971c40909430a798e4e55b140004c4b1fb02ff from main.
|
|
and expressions as rhs.
This disables interpolation of constraint creation statements. Since
Constraint.create_sql interpolates its parameters instead of deferring
this responsibility to the backend connection it must disable
connection level parameters interpolation.
Backport of 42e8cf47c7ee2db238bf91197ea398126c546741 from master
|
|
deferred SQL.
Migrations cannot be recorded in the same transaction as its associated
DDL operations when some of it is deferred until the schema editor
context exits.
Regression in c86a3d80a25acd1887319198ca21a84c451014ad.
Backport of 0c42cdf0d2422f4c080e93594d5d15381d6e955e from master
|
|
This makes sure atomic recording of migration application is used when
the schema editor doesn't defer any statement.
Backport of 533a5835784b95335c8373b6d0b9495b3834e96e from master
|
|
Thanks Simon Charette, Mads Jensen, and Mariusz Felisiak for reviews.
Co-authored-by: Markus Holtermann <info@markusholtermann.eu>
|
|
don't support transactions.
|
|
no __file__ attribute.
The migrations loader prevents the use of PEP-420 namespace packages
for holding apps' migrations modules. Previously the loader tested for
this only by checking that app.migrations.__file__ is present. This
prevented migrations' being found in frozen Python environments that
don't set __file__ on any modules. Now the loader *additionally* checks
whether app.migrations.__path__ is a list because namespace packages
use a different type for __path__. Namespace packages continue to be
forbidden, and, in fact, users of normal Python environments should
experience no change whatsoever.
|
|
|
|
options removal.
|
|
|
|
changes on Oracle.
Field names are always uppercased in the Oracle backend. Changing case
should be a noop to avoid database errors: "ORA-00957: duplicate column
name".
|
|
parent model with mixed case app label.
|
|
AlterField operation with adding a db_column is a noop if the column
name is not changed.
|
|
|
|
order_with_respect_to and constraints/indexes.
|
|
|
|
without __init__.py file."
This reverts commit 3cd3bebe8921e14b911b36b2a1cbceef8fb6294e.
|
|
47 gives 60 in total (47 + 5 + 5 + 3).
|
|
|
|
mixed case label.
Regression in 9e1b6b8a66af4c2197e5b1b41eb9dbb36e4f6502.
Thanks Ignacio Santolin for the report.
|
|
os.PathLike in migrations.
|
|
When the MigrationAutodetector creates more than one initial migration
in a app, name all initial migrations "initial" rather than the opaque
"auto_<DATE>_<TIME>" name.
Initial migrations that have a descriptive name continue to use the
descriptive name.
|
|
with multiple CreateModels.
|
|
Allows expanding the method to inspect additional attributes of the
migration instance. For example, the Migration.initial attribute.
|
|
Added the list of apps with changes not reflected in migrations.
|
|
|
|
|
|
This adds also suggested filename for many built-in operations.
|
|
|
|
|
|
on base fields removal.
Removing a base field must take place before adding a new inherited
model that has a field with the same name.
|
|
connection.
|
|
|
|
|
|
|
|
test_regression_22823_unmigrated_fk_to_migrated_model.
|
|
test_makemigrations_non_interactive_not_null_addition.
|
|
unique_together constraint on the same fields.
|
|
This allows the removal of its O(n) .get_field_by_name method and many
other awkward access patterns.
While fields were initially stored in a list to preserve the initial
model definiton field ordering the auto-detector doesn't take field
ordering into account and no operations exists to reorder fields of a
model.
This makes the preservation of the field ordering completely superflous
because field reorganization after the creation of the model state
wouldn't be taken into account.
|
|
|
|
The existing code was only accounting for primary key changes and not
all unique key fields that can be referenced.
|
|
data type change on SQLite.
Both local and remote auto-created many-to-many relationships were
affected.
|
|
|
|
This will allow them to drop a ton of logic to deal with null
app_label.
|
|
This paved the way for the removal of lot of logic when app_label was
not specified.
|
|
non-relational changes.
Thanks Markus Holtermann for initial test.
Fixed in 1d16c5d562a67625f7309cc7765b8c57d49bf182.
|
|
Delayed reloads of state models broke identity based relationships
between direct and non-direct ancestors.
Basing models.Options related objects map of model labels instead of
their identity ensured relationship consistency is maintained.
Refs #30966.
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
|
|
Command exits with non-zero status if unapplied migrations exist.
|
|
changes.
Made autodetector ignore related model name case changes so unnecessary
migrations are not created.
|
|
|