Changes between Initial Version and Version 1 of Ticket #29515


Ignore:
Timestamp:
Jun 22, 2018, 9:01:38 AM (6 years ago)
Author:
Tim Graham
Comment:

I don't think there would be consensus to do this (but the place to try to get consensus is the DevelopersMailingList). For one thing, empty migrations aren't necessarily data migrations.

There have been similar discussions regarding making startapp generate more than it currently does.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29515

    • Property Component UncategorizedMigrations
    • Property Resolutionwontfix
    • Property Status newclosed
  • Ticket #29515 – Description

    initial v1  
    11SHORT VERSION:  put sample code into the generated file when creating an "empty" migration, like this:
    2 
     2{{{
    33#def combine_names(apps, schema_editor):
    44#    # We can't import the Person model directly as it may be a newer
     
    99#        person.save()
    1010
    11 
    12 and then
    13 
    1411    operations = [
    1512        #migrations.RunPython(combine_names),
    1613    ]
    17 
     14}}}
    1815LONG VERSION/JUSTIFICATION:
    1916
Back to Top