Coverage for ivatar/ivataraccount/migrations/0001_initial.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.6.9, created at 2024-12-26 00:11 +0000

1# Generated by Django 2.0.5 on 2018-05-07 07:13 

2 

3from django.conf import settings 

4from django.db import migrations, models 

5import django.db.models.deletion 

6import ivatar.ivataraccount.models 

7 

8 

9class Migration(migrations.Migration): 

10 

11 initial = True 

12 

13 dependencies = [ 

14 migrations.swappable_dependency(settings.AUTH_USER_MODEL), 

15 ] 

16 

17 operations = [ 

18 migrations.CreateModel( 

19 name='ConfirmedEmail', 

20 fields=[ 

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

22 ('ip_address', models.GenericIPAddressField(unpack_ipv4=True)), 

23 ('add_date', models.DateTimeField()), 

24 ('email', models.EmailField(max_length=254, unique=True)), 

25 ], 

26 options={ 

27 'verbose_name': 'confirmed email', 

28 'verbose_name_plural': 'confirmed emails', 

29 }, 

30 ), 

31 migrations.CreateModel( 

32 name='ConfirmedOpenId', 

33 fields=[ 

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

35 ('ip_address', models.GenericIPAddressField(unpack_ipv4=True)), 

36 ('add_date', models.DateTimeField()), 

37 ('openid', models.URLField(max_length=255, unique=True)), 

38 ], 

39 options={ 

40 'verbose_name': 'confirmed OpenID', 

41 'verbose_name_plural': 'confirmed OpenIDs', 

42 }, 

43 ), 

44 migrations.CreateModel( 

45 name='Photo', 

46 fields=[ 

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

48 ('add_date', models.DateTimeField()), 

49 ('ip_address', models.GenericIPAddressField(unpack_ipv4=True)), 

50 ('data', models.BinaryField()), 

51 ('format', models.CharField(max_length=3)), 

52 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), 

53 ], 

54 options={ 

55 'verbose_name': 'photo', 

56 'verbose_name_plural': 'photos', 

57 }, 

58 ), 

59 migrations.CreateModel( 

60 name='UnconfirmedEmail', 

61 fields=[ 

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

63 ('ip_address', models.GenericIPAddressField(unpack_ipv4=True)), 

64 ('add_date', models.DateTimeField()), 

65 ('email', models.EmailField(max_length=254)), 

66 ('verification_key', models.CharField(max_length=64)), 

67 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), 

68 ], 

69 options={ 

70 'verbose_name': 'unconfirmed_email', 

71 'verbose_name_plural': 'unconfirmed_emails', 

72 }, 

73 ), 

74 migrations.CreateModel( 

75 name='UnconfirmedOpenId', 

76 fields=[ 

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

78 ('ip_address', models.GenericIPAddressField(unpack_ipv4=True)), 

79 ('add_date', models.DateTimeField()), 

80 ('openid', models.URLField(max_length=255)), 

81 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), 

82 ], 

83 options={ 

84 'verbose_name': 'unconfirmed OpenID', 

85 'verbose_name_plural': 'unconfirmed_OpenIDs', 

86 }, 

87 ), 

88 migrations.AddField( 

89 model_name='confirmedopenid', 

90 name='photo', 

91 field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='openids', to='ivataraccount.Photo'), 

92 ), 

93 migrations.AddField( 

94 model_name='confirmedopenid', 

95 name='user', 

96 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), 

97 ), 

98 migrations.AddField( 

99 model_name='confirmedemail', 

100 name='photo', 

101 field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='emails', to='ivataraccount.Photo'), 

102 ), 

103 migrations.AddField( 

104 model_name='confirmedemail', 

105 name='user', 

106 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), 

107 ), 

108 ]