Skip to content

Commit

Permalink
commit migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
gpelouze committed Oct 10, 2023
1 parent 0e72b4c commit f74a800
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 0 deletions.
39 changes: 39 additions & 0 deletions vreapis/data_products/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Generated by Django 4.0.10 on 2023-06-01 13:14

import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

initial = True

dependencies = [
('workflows', '0001_initial'),
('virtual_labs', '0004_remove_virtuallab_profiles_and_more'),
]

operations = [
migrations.CreateModel(
name='DataProduct',
fields=[
('uuid', models.UUIDField(primary_key=True, serialize=False)),
('created', models.DateTimeField(auto_now_add=True, null=True)),
('title', models.CharField(max_length=100)),
('description', models.TextField(null=True)),
('data_url', models.URLField(null=True)),
('vlab', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='virtual_labs.virtuallab')),
('workflow', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='workflows.workflow')),
],
),
migrations.CreateModel(
name='GeoDataProduct',
fields=[
('dataproduct_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data_products.dataproduct')),
('spatial_coverage', django.contrib.gis.db.models.fields.MultiPolygonField(srid=4326)),
('raster_data_url', models.URLField(null=True)),
],
bases=('data_products.dataproduct', models.Model),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 4.0.10 on 2023-10-10 08:49

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


class Migration(migrations.Migration):

dependencies = [
('workflows', '0001_initial'),
('data_products', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='dataproduct',
name='workflow',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='workflows.workflow'),
),
]
24 changes: 24 additions & 0 deletions vreapis/paas_configuration/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Generated by Django 4.0.10 on 2023-10-10 08:49

from django.db import migrations, models


class Migration(migrations.Migration):

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='PaasConfiguration',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=100, null=True)),
('description', models.TextField(help_text='Markdown-formatted description of the platform', null=True)),
('documentation_url', models.URLField(blank=True, null=True)),
('site_icon', models.TextField(help_text='Base 64-encoded image with a resolution of minimum 200x200 px. E.g. "data:image/png;base64,[...]"', null=True)),
],
),
]
22 changes: 22 additions & 0 deletions vreapis/virtual_labs/migrations/0005_virtuallabinstance.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 4.0.10 on 2023-10-10 08:53

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


class Migration(migrations.Migration):

dependencies = [
('virtual_labs', '0004_remove_virtuallab_profiles_and_more'),
]

operations = [
migrations.CreateModel(
name='VirtualLabInstance',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('username', models.CharField(max_length=100, null=True)),
('vlab', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='virtual_labs.virtuallab')),
],
),
]

0 comments on commit f74a800

Please sign in to comment.