Coverage for distro_tracker/vendor/debian/migrations/0001_initial_v2.py: 100%
8 statements
« prev ^ index » next coverage.py v6.5.0, created at 2025-01-12 09:15 +0000
« prev ^ index » next coverage.py v6.5.0, created at 2025-01-12 09:15 +0000
1# Generated by Django 3.2.20 on 2023-08-19 16:25
3import distro_tracker.core.utils
4from django.db import migrations, models
5import django.db.models.deletion
8class Migration(migrations.Migration):
10 initial = True
12 replaces = [
13 ('debian', '0001_initial'),
14 ('debian', '0002_auto_20211128_1144'),
15 ('debian', '0003_auto_20230731_2032'),
16 ]
18 dependencies = [
19 ('core', '0001_initial_v2'),
20 ('django_email_accounts', '0001_initial_v2'),
21 ]
23 operations = [
24 migrations.CreateModel(
25 name='UbuntuPackage',
26 fields=[
27 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
28 ('version', models.TextField(max_length=100)),
29 ('bugs', models.JSONField(null=True)),
30 ('patch_diff', models.JSONField(null=True)),
31 ('package', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='ubuntu_package', to='core.packagename')),
32 ],
33 ),
34 migrations.CreateModel(
35 name='PackageTransition',
36 fields=[
37 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
38 ('transition_name', models.CharField(max_length=120)),
39 ('status', models.CharField(blank=True, max_length=50, null=True)),
40 ('reject', models.BooleanField(default=False)),
41 ('package', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='package_transitions', to='core.packagename')),
42 ],
43 ),
44 migrations.CreateModel(
45 name='PackageExcuses',
46 fields=[
47 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
48 ('excuses', models.JSONField(default=dict)),
49 ('package', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='excuses', to='core.packagename')),
50 ],
51 ),
52 migrations.CreateModel(
53 name='LintianStats',
54 fields=[
55 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
56 ('stats', models.JSONField(default=dict)),
57 ('package', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='lintian_stats', to='core.packagename')),
58 ],
59 ),
60 migrations.CreateModel(
61 name='DebianContributor',
62 fields=[
63 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
64 ('agree_with_low_threshold_nmu', models.BooleanField(default=False)),
65 ('is_debian_maintainer', models.BooleanField(default=False)),
66 ('allowed_packages', distro_tracker.core.utils.SpaceDelimitedTextField(blank=True)),
67 ('email', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='django_email_accounts.useremail')),
68 ],
69 ),
70 migrations.CreateModel(
71 name='BuildLogCheckStats',
72 fields=[
73 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
74 ('stats', models.JSONField(default=dict)),
75 ('package', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='build_logcheck_stats', to='core.sourcepackagename')),
76 ],
77 ),
78 ]