Skip to content

Commit

Permalink
Add missing migrations #47
Browse files Browse the repository at this point in the history
  • Loading branch information
geofranzi committed Sep 30, 2024
1 parent 67c7acb commit 23e3882
Show file tree
Hide file tree
Showing 6 changed files with 165 additions and 0 deletions.
28 changes: 28 additions & 0 deletions framework/climate/migrations/0006_tempresultfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 4.2.5 on 2024-07-03 08:49

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('climate', '0005_climatelayer_variable_name_in_file'),
]

operations = [
migrations.CreateModel(
name='TempResultFile',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('categorized_filename', models.CharField(max_length=500, null=True, unique=True)),
('filename', models.CharField(max_length=400, null=True)),
('category', models.CharField(choices=[('water_budget', 'water_budget'), ('water_budget_bias', 'water_budget_bias'), ('kaariba', 'kaariba')], max_length=255, null=True)),
('num_bands', models.IntegerField(null=True)),
('band_metadata', models.JSONField(default=dict)),
('net_cdf_times', models.JSONField(default=dict)),
('st_mtime_nc', models.CharField(max_length=255, null=True)),
('st_mtime_tif', models.CharField(max_length=255, null=True)),
('st_size_nc', models.CharField(max_length=255, null=True)),
],
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.5 on 2024-07-20 16:44

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('climate', '0006_tempresultfile'),
]

operations = [
migrations.AddField(
model_name='tempresultfile',
name='timestamp_begin',
field=models.CharField(max_length=500, null=True),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by Django 4.2.5 on 2024-01-15 22:12

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


class Migration(migrations.Migration):

dependencies = [
('geospatial', '0001_initial'),
('content', '0004_alter_externaldatabase_region_and_more'),
]

operations = [
migrations.AlterField(
model_name='storylinepart',
name='image',
field=models.ImageField(blank=True, help_text='To avoid cutting off parts of your image please resize it in advance. Right position: max. 300px width; Bottom max. 600px.If you upload a GIF please make sure the size is not higher than 500kb', null=True, upload_to='images/'),
),
migrations.AlterField(
model_name='storylinepart',
name='region',
field=models.ForeignKey(help_text='Please click - Save and continue editing - to update the layer lists below', on_delete=django.db.models.deletion.PROTECT, to='geospatial.region'),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Generated by Django 4.2.5 on 2024-07-20 16:44

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


class Migration(migrations.Migration):

dependencies = [
('layers', '0013_alter_layer_progress_alter_layer_scope_and_more'),
]

operations = [
migrations.CreateModel(
name='WorkPackage',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(blank=True, max_length=200)),
('title', models.CharField(blank=True, max_length=200)),
('description', models.TextField(blank=True, null=True)),
],
),
migrations.AddField(
model_name='contact',
name='image',
field=models.ImageField(blank=True, null=True, upload_to='contact/images/'),
),
migrations.AddField(
model_name='contact',
name='organisation_ror',
field=models.CharField(blank=True, max_length=200, null=True),
),
migrations.AddField(
model_name='contact',
name='organisation_short',
field=models.CharField(blank=True, max_length=200),
),
migrations.AddField(
model_name='contact',
name='person_orcid',
field=models.CharField(blank=True, max_length=200, null=True),
),
migrations.AddField(
model_name='contact',
name='title',
field=models.CharField(blank=True, max_length=200),
),
migrations.AlterField(
model_name='contact',
name='related_org',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='layers.contact', verbose_name='Related organization'),
),
migrations.AddField(
model_name='contact',
name='work_packages',
field=models.ManyToManyField(blank=True, to='layers.workpackage'),
),
]
18 changes: 18 additions & 0 deletions framework/map/migrations/0004_alter_maplayerstyle_template_file.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.5 on 2024-01-15 22:12

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('map', '0003_alter_conformitymapinline_date_type_and_more'),
]

operations = [
migrations.AlterField(
model_name='maplayerstyle',
name='template_file',
field=models.FilePathField(blank=True, match='.*\\.xml', max_length=1000, null=True, path='/opt/geoportal_tippecc/geoportal/framework/templates/sld', verbose_name='Template file'),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.5 on 2024-01-15 22:12

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('mapviewer', '0005_alter_baselayerinline_baselayer_and_more'),
]

operations = [
migrations.AlterField(
model_name='mapviewer',
name='template_file',
field=models.FilePathField(match='.*\\.html', max_length=1000, path='/opt/geoportal_tippecc/geoportal/framework/templates/mapviewer', verbose_name='Template file'),
),
]

0 comments on commit 23e3882

Please sign in to comment.