| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Command exits with non-zero status if changes without migrations exist.
|
|
|
|
| |
deprecation timeline.
|
|
|
|
|
|
| |
squashmigrations
Thanks Tim Graham for the review.
|
| |
|
|
|
|
| |
disabled migrations
|
|
|
|
| |
MIGRATION_MODULES setting.
|
|
|
|
|
|
| |
merging migrations
Thanks Carl Meyer for the report and Tim Graham for the review.
|
|
|
|
| |
migration has a number-only filename.
|
|
|
|
|
|
|
|
| |
in the migrate command.
Ensured squashed migrations are recorded as applied when the
migrate command is run and all of the original migrations
have been previously applied.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Forwardport of ae1d663b7913f6da233c55409c4973248372d302
from stable/1.8.x plus more.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
Currently some of the migrations tests rely on the fact 'input' is aliased
because of six, instead of using mock.patch. Replace this code with proper
use of mock.patch.
Also, replace one case of excessively specific python version check with
testing six.PY3
|
|
|
|
|
|
| |
sqlmigrate output
Thanks Tim Graham for the review.
|
|
|
|
|
|
| |
run mode when merging.
Also added display of migration to stdout when verbosity=3.
|
|
|
|
|
|
|
| |
--noinput option.
Changed --noinput option in makemigrations to suppress all user prompts,
not just when combined with --merge.
|
|
|
|
|
|
|
|
| |
This is preferrable to writing in the current working directory because
it eliminates the risk to leak unwanted files, which can result in very
weird test failures.
Also this will help if we ever try to run these tests concurrently.
|
|
|
|
| |
Django source contains non-ASCII characters.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously Django only checked for the table name in CreateModel
operations in initial migrations and faked the migration automatically.
This led to various errors and unexpected behavior. The newly introduced
--fake-initial flag to the migrate command must be passed to get the
same behavior again. With this change Django will bail out in with a
"duplicate relation / table" error instead.
Thanks Carl Meyer and Tim Graham for the documentation update, report
and review.
|
| |
|
| |
|
|
|
|
| |
OS X & Python 3
|
|
|
|
|
|
| |
migrate --list
Thanks Berker Peksag for the review.
|
|
|
|
|
|
|
| |
migrations and plan.
Thanks to Collin Anderson, Tim Graham, Gabe Jackson, and Marc Tamlyn
for their input, ideas, and review.
|
|
|
|
|
| |
If no changes that need migrations are found, `makemigrations --exit`
exits with error code 1.
|
|
|
|
| |
to CWD.
|
|
|
|
| |
Thanks to yamila-moreno for the idea of a skip message.
|
|
|
|
| |
Django test suite.
|
|
|
|
| |
Refs #23663.
|
|
|
|
| |
Refs #23685.
|
|
|
|
|
|
|
|
| |
checks 3 times"
This reverts commit 8d6e1afe0be0570253a508f43e2ef89ae640984e.
call_command now always set skip_checks to True (tested in
user_commands).
|
|
|
|
|
|
| |
times
Thanks Ilya Baryshev for the report and Tim Graham for the review.
|
|
|
|
| |
command
|
|
|
|
|
|
|
|
|
| |
5853c87a458f62ebd62d7809168355610de2570c.
Oracle doesn't have a `BEGIN` statement so the test would
fail.
Refs #23303
|
|
|
|
| |
output of sqlmigrate.
|
|
|
|
|
|
| |
conflicts in specified apps.
Thanks bendavis78 for the report and Tim Graham for the review.
|
| |
|
|
|
|
|
|
| |
in finally.
Thanks Ian Foote.
|
|
|
|
| |
Thanks artortenburger for the report.
|
|
|
|
|
|
| |
apps breaking state.
Thanks to bendavis78 for the test and diagnostic work.
|
|
|
|
| |
Thanks apollo13 for the review.
|
|
|
|
|
|
|
|
|
| |
`MIGRATION_MODULES` package
`makemigrations` will automatically create the package specified
in `MIGRATION_MODULES` if it doesn't already exist.
Thanks ovidiuc4 for the report.
|
|
|
|
|
|
|
| |
migrations to stdout.
`makemigrations --dry-run` will output the complete migrations file
that would be written if it's used along with `--verbosity 3`.
|
|
|
|
|
|
|
|
|
|
| |
for defaults
Made the fix in InteractiveMigrationQuestioner class code, rather than
MigrationAutodetector, because --dry-run shouldn't affect whether
MigrationAutodetector will detect non-nullable fields, but the
questioner should skip the question and returns a None for default
(since that won't be used anyway) if --dry-run is used.
|
|
|
|
| |
command tests.
|
|
|
|
| |
class
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
framework
This is the result of Christopher Medrela's 2013 Summer of Code project.
Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian
Apolloner, and Alex Gaynor for review notes along the way.
Also: Fixes #8579, fixes #3055, fixes #19844.
|
|
|
|
| |
registry.
|