Skip to content

Commit

Permalink
add migration files
Browse files Browse the repository at this point in the history
  • Loading branch information
superryeti committed Apr 21, 2023
1 parent e2d5041 commit 17c3791
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions physionet-django/project/migrations/0068_datasource.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Generated by Django 4.1.7 on 2023-04-19 14:03

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('project', '0067_alter_activeproject_core_project_and_more'),
]

operations = [
migrations.CreateModel(
name='DataSource',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('files_available', models.BooleanField(default=False)),
('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)),
('access_mechanism', models.CharField(blank=True, choices=[('google-group-email', 'Google Group Email'), ('s3', 'S3'), ('research-environment', 'Research Environment')], max_length=20, null=True)),
('email', models.CharField(blank=True, max_length=320, null=True)),
('uri', models.CharField(blank=True, max_length=320, null=True)),
('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='data_sources', to='project.publishedproject')),
],
options={
'default_permissions': (),
'unique_together': {('project', 'data_location')},
},
),
]

0 comments on commit 17c3791

Please sign in to comment.