diff options
Diffstat (limited to 'app/locations/migrations')
-rw-r--r-- | app/locations/migrations/0019_gpxfile_gpxpoint_gpxtrack.py | 43 | ||||
-rw-r--r-- | app/locations/migrations/0020_auto_20191229_1600.py | 18 | ||||
-rw-r--r-- | app/locations/migrations/0021_walk.py | 30 | ||||
-rw-r--r-- | app/locations/migrations/0022_walk_slug.py | 19 | ||||
-rw-r--r-- | app/locations/migrations/0023_auto_20191229_1816.py | 22 | ||||
-rw-r--r-- | app/locations/migrations/0024_auto_20191229_1817.py | 18 |
6 files changed, 150 insertions, 0 deletions
diff --git a/app/locations/migrations/0019_gpxfile_gpxpoint_gpxtrack.py b/app/locations/migrations/0019_gpxfile_gpxpoint_gpxtrack.py new file mode 100644 index 0000000..b8e698a --- /dev/null +++ b/app/locations/migrations/0019_gpxfile_gpxpoint_gpxtrack.py @@ -0,0 +1,43 @@ +# Generated by Django 2.1.2 on 2019-12-29 15:59 + +import django.contrib.gis.db.models.fields +from django.db import migrations, models +import django.db.models.deletion +import locations.models + + +class Migration(migrations.Migration): + + dependencies = [ + ('locations', '0018_auto_20190414_2124'), + ] + + operations = [ + migrations.CreateModel( + name='GPXFile', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=300)), + ('raw_data', models.TextField()), + ('gpx_file', models.FileField(blank=True, upload_to=locations.models.get_gpx_folder)), + ], + ), + migrations.CreateModel( + name='GPXPoint', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(blank=True, max_length=50, verbose_name='Name')), + ('description', models.CharField(blank=True, max_length=250, verbose_name='Description')), + ('point', django.contrib.gis.db.models.fields.PointField(srid=4326)), + ('gpx_file', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='locations.GPXFile')), + ], + ), + migrations.CreateModel( + name='GPXTrack', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('track', django.contrib.gis.db.models.fields.MultiLineStringField(srid=4326)), + ('gpx_file', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='locations.GPXFile')), + ], + ), + ] diff --git a/app/locations/migrations/0020_auto_20191229_1600.py b/app/locations/migrations/0020_auto_20191229_1600.py new file mode 100644 index 0000000..773d985 --- /dev/null +++ b/app/locations/migrations/0020_auto_20191229_1600.py @@ -0,0 +1,18 @@ +# Generated by Django 2.1.2 on 2019-12-29 16:00 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('locations', '0019_gpxfile_gpxpoint_gpxtrack'), + ] + + operations = [ + migrations.AlterField( + model_name='gpxfile', + name='raw_data', + field=models.TextField(blank=True), + ), + ] diff --git a/app/locations/migrations/0021_walk.py b/app/locations/migrations/0021_walk.py new file mode 100644 index 0000000..02fe883 --- /dev/null +++ b/app/locations/migrations/0021_walk.py @@ -0,0 +1,30 @@ +# Generated by Django 2.1.2 on 2019-12-29 17:58 + +import django.contrib.gis.db.models.fields +from django.db import migrations, models +import django.db.models.deletion +import django.utils.timezone + + +class Migration(migrations.Migration): + + dependencies = [ + ('locations', '0020_auto_20191229_1600'), + ] + + operations = [ + migrations.CreateModel( + name='Walk', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=300)), + ('body_markdown', models.TextField()), + ('body_html', models.TextField(blank=True)), + ('date_walked', models.DateField(default=django.utils.timezone.now)), + ('point', django.contrib.gis.db.models.fields.PointField(blank=True, srid=4326)), + ('rating', models.CharField(blank=True, choices=[('1', '1 Star'), ('2', '2 Stars'), ('3', '3 Stars'), ('4', '4 Stars'), ('5', '5 Stars')], max_length=1, null=True)), + ('gpx_file', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='locations.GPXFile')), + ('location', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')), + ], + ), + ] diff --git a/app/locations/migrations/0022_walk_slug.py b/app/locations/migrations/0022_walk_slug.py new file mode 100644 index 0000000..b217021 --- /dev/null +++ b/app/locations/migrations/0022_walk_slug.py @@ -0,0 +1,19 @@ +# Generated by Django 2.1.2 on 2019-12-29 18:04 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('locations', '0021_walk'), + ] + + operations = [ + migrations.AddField( + model_name='walk', + name='slug', + field=models.SlugField(default='tk'), + preserve_default=False, + ), + ] diff --git a/app/locations/migrations/0023_auto_20191229_1816.py b/app/locations/migrations/0023_auto_20191229_1816.py new file mode 100644 index 0000000..b4f5ea9 --- /dev/null +++ b/app/locations/migrations/0023_auto_20191229_1816.py @@ -0,0 +1,22 @@ +# Generated by Django 2.1.2 on 2019-12-29 18:16 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('locations', '0022_walk_slug'), + ] + + operations = [ + migrations.AlterModelOptions( + name='gpxfile', + options={'ordering': ('title',)}, + ), + migrations.AddField( + model_name='walk', + name='distance', + field=models.PositiveSmallIntegerField(null=True), + ), + ] diff --git a/app/locations/migrations/0024_auto_20191229_1817.py b/app/locations/migrations/0024_auto_20191229_1817.py new file mode 100644 index 0000000..f66cb5e --- /dev/null +++ b/app/locations/migrations/0024_auto_20191229_1817.py @@ -0,0 +1,18 @@ +# Generated by Django 2.1.2 on 2019-12-29 18:17 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('locations', '0023_auto_20191229_1816'), + ] + + operations = [ + migrations.AlterField( + model_name='walk', + name='distance', + field=models.DecimalField(decimal_places=1, max_digits=3, null=True), + ), + ] |