Skip to content

Commit 17c3791

Browse files
committed
add migration files
1 parent e2d5041 commit 17c3791

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Generated by Django 4.1.7 on 2023-04-19 14:03
2+
3+
from django.db import migrations, models
4+
import django.db.models.deletion
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('project', '0067_alter_activeproject_core_project_and_more'),
11+
]
12+
13+
operations = [
14+
migrations.CreateModel(
15+
name='DataSource',
16+
fields=[
17+
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
18+
('files_available', models.BooleanField(default=False)),
19+
('data_location', models.CharField(choices=[('DI', 'Direct'), ('GBQ', 'Google BigQuery'), ('GCS', 'Google Cloud Storage'), ('AOD', 'AWS Open Data'), ('AS3', 'AWS S3')], default='DI', max_length=3)),
20+
('access_mechanism', models.CharField(blank=True, choices=[('google-group-email', 'Google Group Email'), ('s3', 'S3'), ('research-environment', 'Research Environment')], max_length=20, null=True)),
21+
('email', models.CharField(blank=True, max_length=320, null=True)),
22+
('uri', models.CharField(blank=True, max_length=320, null=True)),
23+
('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='data_sources', to='project.publishedproject')),
24+
],
25+
options={
26+
'default_permissions': (),
27+
'unique_together': {('project', 'data_location')},
28+
},
29+
),
30+
]

0 commit comments

Comments
 (0)