Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/core/management/commands/makemigrations.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25604 -- Added makemigrations --check option.Jon Dufresne2015-10-241-6/+17
| | | | Command exits with non-zero status if changes without migrations exist.
* Fixed #25350 -- Added alias --no-input for --noinput to ↵Raphael Michel2015-09-081-1/+2
| | | | management commands.
* Fixed #25047 -- Improved "Conflicting migrations" error ↵Tim Graham2015-08-241-1/+2
| | | | message.
* Fixed #24755 -- Hid operations from dependency apps when ↵Markus Holtermann2015-08-181-1/+5
| | | | | | merging migrations Thanks Carl Meyer for the report and Tim Graham for the review.
* Removed unnecessary arguments in .get method callsPiotr Jakimiak2015-05-131-2/+2
|
* Fixed #24427 -- Stopped writing migration files in dry ↵John Giannelos2015-03-161-4/+15
| | | | | | run mode when merging. Also added display of migration to stdout when verbosity=3.
* Fixed #23407 -- Extended coverage of makemigrations ↵Marten Kenbeek2015-03-081-1/+6
| | | | | | | --noinput option. Changed --noinput option in makemigrations to suppress all user prompts, not just when combined with --merge.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-4/+6
|
* Fixed #23968 -- Replaced list comprehension with ↵Jon Dufresne2014-12-081-7/+7
| | | | generators and dict comprehension
* Fixed #23728 -- Added the --exit option to makemigrations.Tim Heap2014-11-281-8/+16
| | | | | If no changes that need migrations are found, `makemigrations --exit` exits with error code 1.
* Removed reduce() usage in makemigrations; refs #23796.Brad Walker2014-11-201-17/+11
| | | | | | | | | | | | | | A lambda all_items_equal() replaced a reduce() that was broken for potential 3+-way merges. A reduce(operator.eq, ...) accumulates bools and can't generically check equality of all items in a sequence: >>> bool(reduce(operator.eq, [('migrations', '0001_initial')] * 3)) False The code now counts the number of common ancestors to calculate slice offsets for the branches. Each branch shares the same number of common ancestors. The common_ancestor for loop statement had incomplete branch coverage.
* Limited lines to 119 characters in django/Tim Graham2014-09-051-2/+7
| | | | refs #23395.
* Fixed #23302 -- Added --name/-n option to makemigrations ↵Raffaele Salmaso2014-09-031-1/+9
| | | | command
* Fixed #22791 -- Invoke interactive questioner only for ↵Huu Nguyen2014-07-141-0/+9
| | | | | | conflicts in specified apps. Thanks bendavis78 for the report and Tim Graham for the review.
* Fixed #22862 -- Added --noinput option to makemigrations.Huu Nguyen2014-06-201-1/+3
| | | | Thanks artortenburger for the report.
* Fixed #22848: Ignore no-migrations errors during ↵Andrew Godwin2014-06-161-1/+1
| | | | makemigrations only
* Converted remaining management commands to argparseClaude Paroz2014-06-141-13/+11
|
* Fixed #22777: Add dependency on through for autodetected ↵Andrew Godwin2014-06-091-1/+5
| | | | M2M adds
* Fixed #22675 -- makemigrations --dry-run to output ↵Moayad Mardini2014-05-261-1/+7
| | | | | | | migrations to stdout. `makemigrations --dry-run` will output the complete migrations file that would be written if it's used along with `--verbosity 3`.
* Fixed #22676 -- makemigrations --dry-run should not ask ↵Moayad Mardini2014-05-241-1/+1
| | | | | | | | | | 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.
* Removed unused imports in makemigrationsClaude Paroz2014-05-081-3/+2
|
* Fixed #22576: Ensure makemigrations doesn't touch the ↵Andrew Godwin2014-05-071-4/+3
| | | | database.
* Cleanup failing test w/contenttypes and remove useless ↵Andrew Godwin2014-05-011-2/+1
| | | | graph load
* Fixed #22485: Include all unmigrated apps in project ↵Andrew Godwin2014-04-301-2/+2
| | | | state by default.
* Fixed #22511 -- Added args to migrations management ↵Bruno Ribeiro da Silva2014-04-301-0/+1
| | | | commands.
* Fix bad conflict detection during makemigrationsAndrew Godwin2014-03-081-1/+1
|
* Add --empty option to makemigrationsAndrew Godwin2014-02-121-1/+26
|
* Fixed #21968: Bad detection of old-style apps to add ↵Andrew Godwin2014-02-091-0/+2
| | | | initial migration
* Renamed AppCache to Apps.Aymeric Augustin2013-12-241-3/+3
| | | | | | Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
* Moved apps back in the toplevel django namespace.Aymeric Augustin2013-12-221-1/+1
| | | | Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
* Moved the new app cache inside core.Aymeric Augustin2013-12-171-1/+1
|
* Deprecated get_app().Aymeric Augustin2013-12-171-3/+2
|
* Removed module-level functions for the app cache.Aymeric Augustin2013-12-171-3/+3
| | | | | | | | | | | | | | | Since the original ones in django.db.models.loading were kept only for backwards compatibility, there's no need to recreate them. However, many internals of Django still relied on them. They were also imported in django.db.models. They never appear in the documentation, except a quick mention of get_models and get_app in the 1.2 release notes to document an edge case in GIS. I don't think that makes them a public API. This commit doesn't change the overall amount of global state but clarifies that it's tied to the app_cache object instead of hiding it behind half a dozen functions.
* Moved django.db.models.loading to django.apps.cache.Aymeric Augustin2013-12-171-1/+1
| | | | This commit doesn't contain any code changes; it's purely a refactoring.
* Fix poor variable name (flake8 warning)Andrew Godwin2013-12-051-2/+2
|
* Migration VCS conflict detection and --merge for ↵Andrew Godwin2013-12-041-3/+94
| | | | makemigrations
* Add --dry-run option to makemigrationsAndrew Godwin2013-12-041-15/+17
|
* Fixed #21280 -- Don't generate empty migration filesJaved Khan2013-10-171-1/+2
|
* Fixed #20977 -- Fixed writing migrations to disk on Python 3Markus Holtermann2013-09-061-6/+8
|
* Only create the migration directory once per appAndrew Godwin2013-08-211-5/+9
|
* Change autodetector changes API to be just one methodAndrew Godwin2013-08-211-4/+1
|
* Use DEFAULT_DB_ALIASAndrew Godwin2013-08-121-2/+2
|
* Add clarifying commentAndrew Godwin2013-08-101-1/+2
|
* Print all bad apps passed to makemigrations, not just ↵Andrew Godwin2013-08-101-2/+6
| | | | the first one.
* Remove other color_style overrideAndrew Godwin2013-08-091-2/+0
|
* Rename makemigration to makemigrationsAndrew Godwin2013-06-201-0/+80