Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/core/management/commands/migrate.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #23359 -- Removed the migrate --list option per ↵Tim Graham2015-09-241-23/+0
| | | | deprecation timeline.
* Fixed #25350 -- Added alias --no-input for --noinput to ↵Raphael Michel2015-09-081-1/+2
| | | | management commands.
* Fixed #25144 -- Allowed migrate to create tables for ↵Tim Graham2015-09-041-0/+2
| | | | apps without migrations.
* Fixed #25047 -- Improved "Conflicting migrations" error ↵Tim Graham2015-08-241-1/+2
| | | | message.
* Fixed #25231 -- Added recording of squashed migrations ↵mlavin2015-08-071-0/+1
| | | | | | | | 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.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-2/+2
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #23879 -- Allowed model migration skip based on ↵Claude Paroz2015-04-181-1/+1
| | | | | | | feature/vendor Thanks Carl Meyer for the report and review, and Tim Graham for the review.
* Added missing periods in migrate help messages.Joe Borg2015-04-141-2/+2
|
* Fixed #24184 -- Prevented automatic soft-apply of migrationsMarkus Holtermann2015-02-131-1/+7
| | | | | | | | | | | | 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.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-5/+7
|
* Removed support for syncing apps without migrations per ↵Tim Graham2015-01-181-8/+5
| | | | | | | deprecation timeline. Kept support for creating models without migrations when running tests (especially for Django's test suite).
* Removed support for custom SQL per deprecation timeline.Tim Graham2015-01-171-54/+2
|
* Removed support for initial_data fixtures per ↵Tim Graham2015-01-171-12/+0
| | | | deprecation timeline.
* Removed pre_syncdb and post_syncdb signals per ↵Tim Graham2015-01-171-12/+4
| | | | deprecation timeline.
* Fixed #24129 -- Added indicator that migrations are ↵Markus Holtermann2015-01-121-1/+9
| | | | | | rendering the initial state Thanks Tim Graham for the review.
* Refs #23359 -- Removed double newline from output of ↵Markus Holtermann2015-01-051-2/+3
| | | | | | migrate --list Thanks Berker Peksag for the review.
* Show migration elapsed time when verbosity>1Claude Paroz2015-01-021-4/+12
| | | | This facilitates performance debugging related to migrations.
* Fixed #23359 -- Added showmigrations command to list ↵Markus Holtermann2014-12-311-43/+17
| | | | | | | migrations and plan. Thanks to Collin Anderson, Tim Graham, Gabe Jackson, and Marc Tamlyn for their input, ideas, and review.
* Replaced DatabaseCreation sql methods by schema editor ↵Claude Paroz2014-12-231-49/+15
| | | | | | | equivalents Also used schema editor in migrate to sync unmigrated apps (sync_apps). Refs #22340. Thanks Tim Graham for the review.
* Fixed #23975 -- Restored pre_migrate signal if all apps ↵Tim Graham2014-12-171-0/+1
| | | | | | have migrations. Thanks kmmbvnr for the report.
* Fixed #20968 -- Checked Spatialite metadata before ↵Claude Paroz2014-12-081-0/+2
| | | | | | | migrations Thanks Kenial S. Lee for the initial patch and Tim Graham for the review.
* Removed redundant skip_checks option for call_commandClaude Paroz2014-10-201-2/+2
|
* Revert "Fixed #23650 -- Prevented migrate from calling ↵Claude Paroz2014-10-201-1/+0
| | | | | | | | checks 3 times" This reverts commit 8d6e1afe0be0570253a508f43e2ef89ae640984e. call_command now always set skip_checks to True (tested in user_commands).
* Renamed skip_validation into skip_checks as the former ↵Loic Bistuer2014-10-191-1/+1
| | | | is now deprecated.
* Fixed #23650 -- Prevented migrate from calling checks 3 ↵Claude Paroz2014-10-171-0/+1
| | | | | | times Thanks Ilya Baryshev for the report and Tim Graham for the review.
* Limited lines to 119 characters in django/Tim Graham2014-09-051-22/+86
| | | | refs #23395.
* Fixed #23327 -- Added 'zero' syntax to migrate help messageareski2014-08-221-1/+1
|
* Removed unused migrate optionClaude Paroz2014-08-091-1/+0
|
* Fixed #22487: Don't flush out data from before normal ↵Andrew Godwin2014-06-241-0/+12
| | | | TestCases
* Clean up syncdb parts of migrate output if no synced appsAndrew Godwin2014-06-221-3/+3
|
* Swapped placeholders in [sql]migrate command errorClaude Paroz2014-06-201-2/+4
|
* Fixed #22863: Improve clarity of makemigrations for ↵Andrew Godwin2014-06-201-1/+1
| | | | non-db params
* Converted remaining management commands to argparseClaude Paroz2014-06-141-24/+24
|
* Harmonized some PEP 0263 coding preamblesClaude Paroz2014-05-151-1/+1
|
* Fixed #22485: Include all unmigrated apps in project ↵Andrew Godwin2014-04-301-1/+1
| | | | state by default.
* Fixed #22511 -- Added args to migrations management ↵Bruno Ribeiro da Silva2014-04-301-0/+1
| | | | commands.
* Fixed migrate when called inside a transaction.Florian Apolloner2014-04-211-2/+2
| | | | | | | | | | This is useful for tests manually calling migrate inside a testcase, for normal usage this should make no difference, since there is no surrounding transaction after all. If there is one we still try to leave the transaction in a useable state (for postgres at least). If this commit turns out to be causing issues, settings savepoint=False is probably the right fix :)
* Removed legacy transaction management per the ↵Aymeric Augustin2014-03-211-6/+2
| | | | deprecation timeline.
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-1/+1
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Fixed #21969: Fix behaviour of initial_data with ↵Andrew Godwin2014-02-091-1/+2
| | | | migrated apps
* Ensure cursors are closed when no longer needed.Michael Manfre2014-02-021-94/+99
| | | | | | This commit touchs various parts of the code base and test framework. Any found usage of opening a cursor for the sake of initializing a connection has been replaced with 'ensure_connection()'.
* Removed the only_with_models_module argument of ↵Aymeric Augustin2013-12-301-2/+2
| | | | | | | | | get_model[s]. Now that the refactorings are complete, it isn't particularly useful any more, nor very well named. Let's keep the API as simple as possible. Fixed #21689.
* Changed get_migratable_models to use an app config.Aymeric Augustin2013-12-291-1/+1
|
* Used app_label instead of appname.Aymeric Augustin2013-12-281-1/+1
| | | | | | | The last component of the dotted path to the application module is consistently referenced as the application "label". For instance it's AppConfig.label. appname could be confused with AppConfig.name, which is the full dotted path.
* Made the AppConfig API marginally more consistent.Aymeric Augustin2013-12-261-1/+1
| | | | Eliminated the app_ prefix that was more confusing than useful.
* Renamed AppCache to Apps.Aymeric Augustin2013-12-241-17/+17
| | | | | | 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.
* Stopped iterating on INSTALLED_APPS.Aymeric Augustin2013-12-221-4/+3
| | | | Used the app cache's get_app_configs() method instead.
* Moved the new app cache inside core.Aymeric Augustin2013-12-171-1/+1
|
* Made it possible to create apps without a models module.Aymeric Augustin2013-12-171-1/+1
| | | | | | | This commit reverts f44c4a5d0f and 39bbd165. django.test.simple will be updated in a separate commit as it requires invasive changes.