Coverage for src/backend/InvenTree/part/migrations/0034_auto_20200404_1238.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-07 17:47 +0000

1# Generated by Django 2.2.10 on 2020-04-04 12:38 

2 

3from django.db import migrations 

4 

5 

6def create_thumbnails(apps, schema_editor): 

7 """ 

8 Create thumbnails for all existing Part images. 

9 

10 Note: This functionality is now performed in apps.py, 

11 as running the thumbnail script here caused too many database level errors. 

12 

13 This migration is left here to maintain the database migration history 

14 

15 """ 

16 pass 

17 

18 

19class Migration(migrations.Migration): 

20 

21 atomic = False 

22 

23 dependencies = [ 

24 ('part', '0033_auto_20200404_0445'), 

25 ] 

26 

27 operations = [ 

28 migrations.RunPython(create_thumbnails, reverse_code=create_thumbnails), 

29 ]