1# -*- coding: utf-8 -*- 

2 

3from django.db import models, migrations 

4import jsonfield.fields 

5import distro_tracker.core.utils 

6 

7 

8class Migration(migrations.Migration): 

9 

10 dependencies = [ 

11 ('django_email_accounts', '0001_initial'), 

12 ('core', '0001_initial'), 

13 ] 

14 

15 operations = [ 

16 migrations.CreateModel( 

17 name='BuildLogCheckStats', 

18 fields=[ 

19 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 

20 ('stats', jsonfield.fields.JSONField(default=dict)), 

21 ('package', models.OneToOneField(related_name='build_logcheck_stats', to='core.SourcePackageName', on_delete=models.CASCADE)), 

22 ], 

23 options={ 

24 }, 

25 bases=(models.Model,), 

26 ), 

27 migrations.CreateModel( 

28 name='DebianContributor', 

29 fields=[ 

30 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 

31 ('agree_with_low_threshold_nmu', models.BooleanField(default=False)), 

32 ('is_debian_maintainer', models.BooleanField(default=False)), 

33 ('allowed_packages', distro_tracker.core.utils.SpaceDelimitedTextField(blank=True)), 

34 ('email', models.OneToOneField(to='django_email_accounts.UserEmail', on_delete=models.CASCADE)), 

35 ], 

36 options={ 

37 }, 

38 bases=(models.Model,), 

39 ), 

40 migrations.CreateModel( 

41 name='LintianStats', 

42 fields=[ 

43 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 

44 ('stats', jsonfield.fields.JSONField(default=dict)), 

45 ('package', models.OneToOneField(related_name='lintian_stats', to='core.PackageName', on_delete=models.CASCADE)), 

46 ], 

47 options={ 

48 }, 

49 bases=(models.Model,), 

50 ), 

51 migrations.CreateModel( 

52 name='PackageExcuses', 

53 fields=[ 

54 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 

55 ('excuses', jsonfield.fields.JSONField(default=dict)), 

56 ('package', models.OneToOneField(related_name='excuses', to='core.PackageName', on_delete=models.CASCADE)), 

57 ], 

58 options={ 

59 }, 

60 bases=(models.Model,), 

61 ), 

62 migrations.CreateModel( 

63 name='PackageTransition', 

64 fields=[ 

65 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 

66 ('transition_name', models.CharField(max_length=50)), 

67 ('status', models.CharField(max_length=50, null=True, blank=True)), 

68 ('reject', models.BooleanField(default=False)), 

69 ('package', models.ForeignKey(related_name='package_transitions', to='core.PackageName', on_delete=models.CASCADE)), 

70 ], 

71 options={ 

72 }, 

73 bases=(models.Model,), 

74 ), 

75 migrations.CreateModel( 

76 name='UbuntuPackage', 

77 fields=[ 

78 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 

79 ('version', models.TextField(max_length=100)), 

80 ('bugs', jsonfield.fields.JSONField(null=True, blank=True)), 

81 ('patch_diff', jsonfield.fields.JSONField(null=True, blank=True)), 

82 ('package', models.OneToOneField(related_name='ubuntu_package', to='core.PackageName', on_delete=models.CASCADE)), 

83 ], 

84 options={ 

85 }, 

86 bases=(models.Model,), 

87 ), 

88 ]