@@ -0,0 +1,2076 @@
+# -*- coding: utf-8 -*-%0A# Generated by Django 1.11.20 on 2020-02-15 11:20%0Afrom __future__ import unicode_literals%0A%0Afrom django.db import migrations, models%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A    dependencies = %5B%0A        ('maposmatic', '0016_submitterip_nullable'),%0A    %5D%0A%0A    operations = %5B%0A        migrations.CreateModel(%0A            name='UploadFile',%0A            fields=%5B%0A                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),%0A                ('uploaded_file', models.FileField(blank=True, null=True, upload_to='upload/general/%25Y/%25m/%25d/')),%0A                ('file_type', models.CharField(choices=%5B('gpx', 'GPX Track'), ('umap', 'UMAP Export File'), ('poi', 'POI File')%5D, max_length=4)),%0A                ('job', models.ManyToManyField(to='maposmatic.MapRenderingJob')),%0A            %5D,%0A        ),%0A%0A        migrations.RunSQL(%22%22%22%0A        INSERT INTO maposmatic_uploadfile (uploaded_file, file_type) %0A             SELECT DISTINCT track AS uploaded_file, 'gpx' AS file_type %0A               FROM maposmatic_maprenderingjob %0A              WHERE track %3C%3E ''%0A        %22%22%22, %0A        ),%0A        migrations.RunSQL(%22%22%22%0A        INSERT INTO maposmatic_uploadfile (uploaded_file, file_type) %0A             SELECT DISTINCT umap AS uploaded_file, 'umap' AS file_type %0A               FROM maposmatic_maprenderingjob %0A              WHERE umap %3C%3E ''%0A        %22%22%22, %0A        ),%0A        migrations.RunSQL(%22%22%22%0A        INSERT INTO maposmatic_uploadfile (uploaded_file, file_type) %0A             SELECT DISTINCT poi_file AS uploaded_file, 'poi' AS file_type %0A               FROM maposmatic_maprenderingjob %0A              WHERE poi_file %3C%3E ''%0A        %22%22%22, %0A        ),%0A%0A        migrations.RunSQL(%22%22%22%0A        INSERT INTO maposmatic_uploadfile_job (uploadfile_id, maprenderingjob_id) %0A             SELECT file.id AS uploadfile_id, job.id AS maprenderingjob_id %0A               FROM maposmatic_uploadfile file %0A               JOIN maposmatic_maprenderingjob job %0A                 ON job.track = file.uploaded_file%0A        %22%22%22,%0A        ),%0A    %5D%0A

add multiple file upload capability (issue #41 - work in progress)