Changes between Initial Version and Version 1 of Ticket #25818


Ignore:
Timestamp:
Nov 26, 2015, 7:34:49 AM (9 years ago)
Author:
Simon Kelly
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25818 – Description

    initial v1  
    33{{{#!python
    44operations = [
     5        migrations.RenameField(
     6            model_name='bar',
     7            old_name='bar_id',
     8            new_name='external_id',
     9        ),
    510        migrations.RunSQL(
    6             'ALTER TABLE form_processor_bar RENAME COLUMN bar_id TO external_id',
    7             'ALTER TABLE form_processor_bar RENAME COLUMN external_id TO bar_id',
     11            'SELECT 1',
     12            'SELECT 1',
    813            state_operations=[
    9                 migrations.RenameField(
    10                     model_name='bar',
    11                     old_name='bar_id',
    12                     new_name='external_id',
    13                 ),
    1414                migrations.AlterField(
    1515                    model_name='bazz',
     
    5757}}}
    5858
    59 On further examination it seems that the 'path' to the operation is being passed in without the module reference i.e. 'RenameField' instead of 'migrations.RenameField'. It's also possible that something else is going wrong since all the other paths being passed to 'serialize_deconstructed' are for actual field classes e.g. 'django.db.models.CharField'.
     59On further examination it seems that the 'path' to the operation is being passed in without the module reference i.e. 'AlterField' instead of 'migrations.AlterField'. It's also possible that something else is going wrong since all the other paths being passed to 'serialize_deconstructed' are for actual field classes e.g. 'django.db.models.CharField'.
Back to Top