Changes between Initial Version and Version 1 of Ticket #25817, comment 1


Ignore:
Timestamp:
Nov 26, 2015, 7:33:40 AM (9 years ago)
Author:
Simon Kelly

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25817, comment 1

    initial v1  
    22{{{#!python
    33    operations = [
     4        migrations.RenameField(
     5            model_name='bar',
     6            old_name='bar_id',
     7            new_name='external_id',
     8        ),
    49        migrations.RunSQL(
    5             'ALTER TABLE form_processor_bar RENAME COLUMN bar_id TO external_id',
    6             'ALTER TABLE form_processor_bar RENAME COLUMN external_id TO bar_id',
     10            'SELECT 1',
     11            'SELECT 1',
    712            state_operations=[
    8                 migrations.RenameField(
    9                     model_name='bar',
    10                     old_name='bar_id',
    11                     new_name='external_id',
    12                 ),
    1313                migrations.AlterField(
    1414                    model_name='bazz',
Back to Top