Conditions | 3 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # Generated by Django 2.1.5 on 2019-01-20 19:24 |
||
6 | def forward_migrate_data(apps, schema_editor): |
||
7 | TestCase = apps.get_model('testcases', 'TestCase') |
||
8 | HistoricalTestCase = apps.get_model('testcases', 'HistoricalTestCase') |
||
9 | |||
10 | for test_case in TestCase.objects.all(): |
||
11 | test_case.new_is_automated = test_case.is_automated >= 1 |
||
12 | test_case.save() |
||
13 | |||
14 | for tc_history in HistoricalTestCase.objects.all(): |
||
15 | tc_history.new_is_automated = tc_history.is_automated >= 1 |
||
16 | tc_history.save() |
||
17 | |||
59 |