Simon Charette
cc2ca9c550
Fixed #25807 -- Instructed the migration writer about lazy objects.
...
Thanks to Trac alias mrgaolei for the report, Baptiste for the confirmation
and Tim for the review.
2015-11-26 11:14:47 -05:00
Andrei Fokau
998894e1b9
Fixed #25764 -- Added support for serialization of enum.Enum in migrations.
...
Thanks Tim Graham for the review.
2015-11-19 17:21:12 -05:00
Tim Graham
54848a96dd
Removed versionadded/changed annotations for 1.8.
2015-09-23 19:31:11 -04:00
Markus Holtermann
43f2eb7ef3
Fixed #25390 -- Allowed specifying a start migration in squashmigrations
...
Thanks Tim Graham for the review.
2015-09-19 14:55:34 +10:00
Tyson Clugg
73df1040a2
Cleaned up example migration files in docs
2015-08-31 22:15:05 +10:00
Tyson Clugg
e34226fc37
Fixed #25259 -- Added comments to header of generated migration files
2015-08-31 22:14:21 +10:00
Piper Merriam
537818af87
Fixed #25185 -- Added support for functools.partial serialization in migrations
2015-07-29 10:15:50 -04:00
Tim Graham
e3d1f2422c
Fixed malformed Sphinx directives.
2015-07-25 06:37:51 -04:00
Andrei Kulakov
db97a88495
Fixed #24375 -- Added Migration.initial attribute
...
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.
2015-07-13 15:57:40 -04:00
Tim Graham
aed437d567
Updated release process for new release schedule.
2015-06-25 11:36:17 -04:00
Andrei Kulakov
b089759d60
Fixed #24052 -- Doc'd how to write data migrations with models in multiple apps.
2015-03-13 13:22:19 -04:00
Carl Meyer
e35c70bef4
Fixed #23892 -- Clarified compatibility policy for migrations.
2015-02-16 10:11:47 -05:00
Markus Holtermann
f287bec583
Fixed #24184 -- Prevented automatic soft-apply of migrations
...
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.
2015-02-13 14:29:59 +01:00
Tim Graham
c5d1a5ef5c
Removed docs about unmigrated apps as they are not supported in Django 1.9.
2015-02-09 10:28:42 -05:00
Tim Graham
570912a97d
Added a "Writing migrations" how-to.
2015-02-03 13:09:54 -05:00
Tim Graham
c79faae761
Removed versionadded/changed notes for 1.7.
2015-02-01 21:02:40 -05:00
Andrei Kulakov
dbabf43920
Updated recommendation for testing keyword arg in custom fields.
2015-01-30 08:29:17 -05:00
Tim Graham
7e8cf74dc7
Removed support for syncing apps without migrations per deprecation timeline.
...
Kept support for creating models without migrations when running tests
(especially for Django's test suite).
2015-01-18 15:58:06 -05:00
Tim Graham
4aa089a9a9
Removed support for custom SQL per deprecation timeline.
2015-01-17 10:16:06 -05:00
Tim Graham
f6463bb380
Removed the syncdb command per deprecation timeline.
2015-01-17 09:20:12 -05:00
Loic Bistuer
8f4877c89d
Fixed #22583 -- Allowed RunPython and RunSQL to provide hints to the db router.
...
Thanks Markus Holtermann and Tim Graham for the review.
2015-01-10 00:30:48 +07:00
Tim Graham
c87ee41954
Fixed #23861 -- Added an API to deprecate model fields.
...
Thanks Markus Holterman and Berker Peksag for review.
2015-01-05 11:35:36 -05:00
Alfred Perlstein
db3f7c15cb
Fixed #23749 -- Documented how to use the database alias in RunPython.
...
Thanks Markus Holtermann for review and feedback.
2015-01-03 12:06:40 -05:00
Markus Holtermann
aa5ef0d4fc
Fixed #23822 -- Added support for serializing model 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.
2014-12-15 08:34:15 -05:00
Carl Meyer
d4bdddeefe
Fixed #23982 -- Added doc note on generating Python 2/3 cross-compatible migrations.
...
Thanks Luke Plant for the report, and Tim Graham, Simon Charette, and Markus
Holtermann for review and discussion.
2014-12-12 12:50:39 -07:00
Carl Meyer
dee3946a91
Fix malformed note directives.
2014-11-17 16:42:54 -07:00
Tim Graham
f0ff452451
Added a warning about nonexistent FK constraints when unmigrated apps depend on migrated ones.
...
Thanks NotSqrt for the report; refs #23741 .
2014-11-04 07:25:35 -05:00
bahoo
af7d66b4f2
Fixed typo in squashing migrations documentation
2014-10-27 14:16:39 -07:00
Loic Bistuer
bf1bb07bf0
Updated release notes following backport of a407b84
. Refs #23365 .
2014-10-09 22:48:27 +07:00
Rudy Mutter
a407b846b4
Fixed #23365 -- Added support for timezone-aware datetimes to migrations.
2014-09-29 20:45:43 -04:00
Duane Hilton
054bdfeff1
Fixed #17638 -- Added crosslinks between topic and reference guides.
...
Thanks oinopion for the suggestion and jarus for the initial patch.
2014-09-29 18:06:31 -04:00
Carl Meyer
f5c932ddec
How many is two?
2014-09-26 11:23:46 -06:00
Markus Holtermann
066e672d79
Fixed #23473 -- Documented that @deconstructible classes need __eq__.
2014-09-24 14:19:11 -04:00
Greg Brown
b4d486c80f
Note re migrations importing custom fields
2014-09-10 09:52:44 +12:00
Andrew Godwin
45768e6b72
Update docs to be more clear about nested classes (refs #23418 )
2014-09-05 15:00:01 -07:00
Raffaele Salmaso
1435cfbe8d
Fixed #23302 -- Added --name/-n option to makemigrations command
2014-09-02 21:09:18 -04:00
Tim Graham
bda2809712
Fixed #23400 -- Added "Remove 'south' from INSTALLED_APPS" to upgrade instructions.
...
Thanks dgrant for the report.
2014-09-02 21:03:16 -04:00
Tim Graham
50ae4b4b9e
Fixed #23131 -- Documented serialization of callable functions in migrations.
2014-08-24 13:33:36 -04:00
Andrew Godwin
459cfb523d
Update squashmigration docs to also mention circ dep errs (refs #23337 )
2014-08-21 19:18:26 -07:00
Lee Sanghyuck
11d9cbe2f4
Fixed #23316 -- Added datetime.time serialization in migrations.
2014-08-19 13:31:46 -04:00
Tim Graham
7ed3d0bb61
Fixed #23263 -- Added sqlmigrate to migration topic guide.
2014-08-18 09:15:24 -04:00
areski
d441a9d006
Improved formatting of deconstruct() docs.
2014-08-13 12:41:11 -04:00
Andrew Godwin
b9a9b052e8
Fixed #23127 : south_migrations note in docs
2014-07-29 10:10:31 -07:00
Andrew Godwin
8ebd6d35d7
Fixed #23090 : Document and enforce not double-squashing migrations
2014-07-29 10:02:59 -07:00
Andrew Godwin
ceb2aaf1d4
Add south upgrade note to 1.7 release notes
2014-07-10 10:00:31 -07:00
Andrew Godwin
9f4852f649
Fixed #22863 : Improve clarity of makemigrations for non-db params
2014-06-19 23:41:32 -07:00
Andrew Godwin
24afb1d7a7
Fixed #22660 : Doc'd you can't have unmigrated apps depend on migrated
2014-06-15 11:47:23 -07:00
Andrew Godwin
6fd455adfc
Fixed #22436 : More careful checking on method ref'ce serialization
2014-06-07 17:05:51 -07:00
Claude Paroz
e520a73eee
Harmonized some PEP 0263 coding preambles
2014-05-15 19:58:41 +02:00
Andrew Godwin
827d5dc189
Improve docs around deconstruction/serialisation (refs #22337 )
2014-05-06 23:06:41 -07:00