|
| 1 | +# Generated by Django 2.2.5 on 2019-09-11 19:15 |
| 2 | + |
| 3 | +from django.db import migrations, models |
| 4 | +import django.db.models.deletion |
| 5 | +import uuid |
| 6 | + |
| 7 | + |
| 8 | +class Migration(migrations.Migration): |
| 9 | + |
| 10 | + initial = True |
| 11 | + |
| 12 | + dependencies = [ |
| 13 | + ('core', '0004_add_duplicated_reserved_resources'), |
| 14 | + ] |
| 15 | + |
| 16 | + operations = [ |
| 17 | + migrations.CreateModel( |
| 18 | + name='PythonPublication', |
| 19 | + fields=[ |
| 20 | + ('publication_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='python_pythonpublication', serialize=False, to='core.Publication')), |
| 21 | + ], |
| 22 | + options={ |
| 23 | + 'default_related_name': '%(app_label)s_%(model_name)s', |
| 24 | + }, |
| 25 | + bases=('core.publication',), |
| 26 | + ), |
| 27 | + migrations.CreateModel( |
| 28 | + name='PythonRemote', |
| 29 | + fields=[ |
| 30 | + ('remote_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='python_pythonremote', serialize=False, to='core.Remote')), |
| 31 | + ('prereleases', models.BooleanField(default=False)), |
| 32 | + ], |
| 33 | + options={ |
| 34 | + 'default_related_name': '%(app_label)s_%(model_name)s', |
| 35 | + }, |
| 36 | + bases=('core.remote',), |
| 37 | + ), |
| 38 | + migrations.CreateModel( |
| 39 | + name='PythonPackageContent', |
| 40 | + fields=[ |
| 41 | + ('content_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='python_pythonpackagecontent', serialize=False, to='core.Content')), |
| 42 | + ('filename', models.TextField(db_index=True, unique=True)), |
| 43 | + ('packagetype', models.TextField(choices=[('bdist_dmg', 'bdist_dmg'), ('bdist_dumb', 'bdist_dumb'), ('bdist_egg', 'bdist_egg'), ('bdist_msi', 'bdist_msi'), ('bdist_rpm', 'bdist_rpm'), ('bdist_wheel', 'bdist_wheel'), ('bdist_wininst', 'bdist_wininst'), ('sdist', 'sdist')])), |
| 44 | + ('name', models.TextField()), |
| 45 | + ('version', models.TextField()), |
| 46 | + ('metadata_version', models.TextField()), |
| 47 | + ('summary', models.TextField()), |
| 48 | + ('description', models.TextField()), |
| 49 | + ('keywords', models.TextField()), |
| 50 | + ('home_page', models.TextField()), |
| 51 | + ('download_url', models.TextField()), |
| 52 | + ('author', models.TextField()), |
| 53 | + ('author_email', models.TextField()), |
| 54 | + ('maintainer', models.TextField()), |
| 55 | + ('maintainer_email', models.TextField()), |
| 56 | + ('license', models.TextField()), |
| 57 | + ('requires_python', models.TextField()), |
| 58 | + ('project_url', models.TextField()), |
| 59 | + ('platform', models.TextField()), |
| 60 | + ('supported_platform', models.TextField()), |
| 61 | + ('requires_dist', models.TextField(default='[]')), |
| 62 | + ('provides_dist', models.TextField(default='[]')), |
| 63 | + ('obsoletes_dist', models.TextField(default='[]')), |
| 64 | + ('requires_external', models.TextField(default='[]')), |
| 65 | + ], |
| 66 | + options={ |
| 67 | + 'default_related_name': '%(app_label)s_%(model_name)s', |
| 68 | + 'unique_together': {('filename',)}, |
| 69 | + }, |
| 70 | + bases=('core.content',), |
| 71 | + ), |
| 72 | + migrations.CreateModel( |
| 73 | + name='PythonDistribution', |
| 74 | + fields=[ |
| 75 | + ('basedistribution_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='python_pythondistribution', serialize=False, to='core.BaseDistribution')), |
| 76 | + ('publication', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='python_pythondistribution', to='core.Publication')), |
| 77 | + ], |
| 78 | + options={ |
| 79 | + 'default_related_name': '%(app_label)s_%(model_name)s', |
| 80 | + }, |
| 81 | + bases=('core.basedistribution',), |
| 82 | + ), |
| 83 | + migrations.CreateModel( |
| 84 | + name='Classifier', |
| 85 | + fields=[ |
| 86 | + ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), |
| 87 | + ('_created', models.DateTimeField(auto_now_add=True)), |
| 88 | + ('_last_updated', models.DateTimeField(auto_now=True, null=True)), |
| 89 | + ('name', models.TextField()), |
| 90 | + ('python_package_content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='classifiers', related_query_name='classifier', to='python.PythonPackageContent')), |
| 91 | + ], |
| 92 | + options={ |
| 93 | + 'abstract': False, |
| 94 | + }, |
| 95 | + ), |
| 96 | + migrations.CreateModel( |
| 97 | + name='ProjectSpecifier', |
| 98 | + fields=[ |
| 99 | + ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), |
| 100 | + ('_created', models.DateTimeField(auto_now_add=True)), |
| 101 | + ('_last_updated', models.DateTimeField(auto_now=True, null=True)), |
| 102 | + ('name', models.TextField()), |
| 103 | + ('version_specifier', models.TextField(default='')), |
| 104 | + ('exclude', models.BooleanField(default=False)), |
| 105 | + ('remote', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='projects', related_query_name='projectspecifier', to='python.PythonRemote')), |
| 106 | + ], |
| 107 | + options={ |
| 108 | + 'unique_together': {('name', 'version_specifier', 'exclude', 'remote')}, |
| 109 | + }, |
| 110 | + ), |
| 111 | + ] |
0 commit comments