summaryrefslogtreecommitdiff
path: root/app/locations/migrations/0019_gpxfile_gpxpoint_gpxtrack.py
blob: b8e698acff54c32c9d924c6dc1ff1819a228522e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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')),
            ],
        ),
    ]