File: 0013_test_indexes_retained_part2.py

package info (click to toggle)
mssql-django 1.6-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 644 kB
  • sloc: python: 5,289; sh: 105; makefile: 7
file content (27 lines) | stat: -rw-r--r-- 797 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('testapp', '0012_test_indexes_retained_part1'),
    ]

    # Run test for issue https://github.com/microsoft/mssql-django/issues/14
    # where the following operations should leave indexes intact
    operations = [
        migrations.AlterField(
            model_name='testindexesretained',
            name='a',
            field=models.IntegerField(db_index=True, null=True),
        ),
        migrations.RenameField(
            model_name='testindexesretained',
            old_name='b',
            new_name='b_renamed',
        ),
        migrations.RenameModel(
            old_name='TestIndexesRetained',
            new_name='TestIndexesRetainedRenamed',
        ),
    ]