diff options
Diffstat (limited to 'bak/unused_apps/birds/migrations')
15 files changed, 449 insertions, 0 deletions
diff --git a/bak/unused_apps/birds/migrations/0001_initial.py b/bak/unused_apps/birds/migrations/0001_initial.py new file mode 100644 index 0000000..b20387e --- /dev/null +++ b/bak/unused_apps/birds/migrations/0001_initial.py @@ -0,0 +1,86 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-03-13 09:49 +from __future__ import unicode_literals + +import birds.models +from django.conf import settings +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): + + initial = True + + dependencies = [ + #('locations', '__first__'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='Bird', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('common_name', models.CharField(max_length=200)), + ('slug', models.SlugField()), + ('scientific_name', models.CharField(max_length=200)), + ('code', models.IntegerField(choices=[(1, 'regular occurring - common'), (2, 'regular occurring - less common'), (3, 'rare'), (4, 'casual'), (5, 'accidental'), (6, 'Cannot be found')], default=0)), + ('image', models.FileField(blank=True, null=True, upload_to=birds.models.get_upload_path)), + ], + options={ + 'ordering': ['common_name'], + }, + ), + migrations.CreateModel( + name='BirdAudio', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('audio', models.FileField(upload_to='audio/birds/')), + ('recorder', models.CharField(blank=True, max_length=200, null=True)), + ('pub_date', models.DateTimeField()), + ('location', models.CharField(blank=True, max_length=200, null=True)), + ('link', models.CharField(blank=True, max_length=450, null=True)), + ('copyright', models.CharField(blank=True, max_length=250, null=True)), + ('bird', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='recordings', to='birds.Bird')), + ], + options={ + 'ordering': ['bird'], + 'verbose_name_plural': 'Bird Audio', + }, + ), + migrations.CreateModel( + name='BirdClass', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('common_name', models.CharField(max_length=200)), + ('scientific_name', models.CharField(max_length=200)), + ], + options={ + 'ordering': ['common_name'], + 'verbose_name_plural': 'Bird Class', + }, + ), + migrations.CreateModel( + name='BirdSighting', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('point', django.contrib.gis.db.models.fields.PointField(srid=4326)), + ('date', models.DateTimeField(default=django.utils.timezone.now, verbose_name='Date')), + ('image', models.FileField(blank=True, null=True, upload_to=birds.models.get_upload_path)), + ('bird', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='birds.Bird')), + ('location', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')), + ('seen_by', models.ManyToManyField(to=settings.AUTH_USER_MODEL)), + ], + options={ + 'verbose_name_plural': 'Bird Sighting', + }, + ), + migrations.AddField( + model_name='bird', + name='bird_class', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='birds.BirdClass'), + ), + ] diff --git a/bak/unused_apps/birds/migrations/0002_auto_20160313_0953.py b/bak/unused_apps/birds/migrations/0002_auto_20160313_0953.py new file mode 100644 index 0000000..a2085ea --- /dev/null +++ b/bak/unused_apps/birds/migrations/0002_auto_20160313_0953.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-03-13 09:53 +from __future__ import unicode_literals + +import birds.models +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('birds', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='bird', + name='image_credit', + field=models.CharField(blank=True, max_length=200, null=True), + ), + migrations.AlterField( + model_name='bird', + name='image', + field=models.FileField(blank=True, help_text='width of high res is 1360px', null=True, upload_to=birds.models.get_upload_path), + ), + ] diff --git a/bak/unused_apps/birds/migrations/0003_birdsighting_images.py b/bak/unused_apps/birds/migrations/0003_birdsighting_images.py new file mode 100644 index 0000000..d20e8b7 --- /dev/null +++ b/bak/unused_apps/birds/migrations/0003_birdsighting_images.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-03-20 08:02 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('photos', '0007_auto_20160320_0802'), + ('birds', '0002_auto_20160313_0953'), + ] + + operations = [ + migrations.AddField( + model_name='birdsighting', + name='images', + field=models.ManyToManyField(to='photos.LuxImage'), + ), + ] diff --git a/bak/unused_apps/birds/migrations/0004_auto_20160321_1123.py b/bak/unused_apps/birds/migrations/0004_auto_20160321_1123.py new file mode 100644 index 0000000..7672a18 --- /dev/null +++ b/bak/unused_apps/birds/migrations/0004_auto_20160321_1123.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-03-21 11:23 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('birds', '0003_birdsighting_images'), + ] + + operations = [ + migrations.RemoveField( + model_name='birdsighting', + name='image', + ), + migrations.AddField( + model_name='birdsighting', + name='audio', + field=models.ManyToManyField(to='birds.BirdAudio'), + ), + ] diff --git a/bak/unused_apps/birds/migrations/0005_auto_20170714_2222.py b/bak/unused_apps/birds/migrations/0005_auto_20170714_2222.py new file mode 100644 index 0000000..8bdfb4b --- /dev/null +++ b/bak/unused_apps/birds/migrations/0005_auto_20170714_2222.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2017-07-14 22:22 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('birds', '0004_auto_20160321_1123'), + ] + + operations = [ + migrations.AlterField( + model_name='birdsighting', + name='audio', + field=models.ManyToManyField(blank=True, null=True, to='birds.BirdAudio'), + ), + migrations.AlterField( + model_name='birdsighting', + name='images', + field=models.ManyToManyField(blank=True, null=True, to='photos.LuxImage'), + ), + ] diff --git a/bak/unused_apps/birds/migrations/0006_auto_20170714_2224.py b/bak/unused_apps/birds/migrations/0006_auto_20170714_2224.py new file mode 100644 index 0000000..bd4db82 --- /dev/null +++ b/bak/unused_apps/birds/migrations/0006_auto_20170714_2224.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2017-07-14 22:24 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('birds', '0005_auto_20170714_2222'), + ] + + operations = [ + migrations.AlterField( + model_name='birdsighting', + name='audio', + field=models.ManyToManyField(blank=True, to='birds.BirdAudio'), + ), + migrations.AlterField( + model_name='birdsighting', + name='images', + field=models.ManyToManyField(blank=True, to='photos.LuxImage'), + ), + ] diff --git a/bak/unused_apps/birds/migrations/0007_auto_20170821_1415.py b/bak/unused_apps/birds/migrations/0007_auto_20170821_1415.py new file mode 100644 index 0000000..a51776c --- /dev/null +++ b/bak/unused_apps/birds/migrations/0007_auto_20170821_1415.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2017-08-21 14:15 +from __future__ import unicode_literals + +import django.contrib.gis.db.models.fields +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('photos', '0018_auto_20161130_1218'), + ('birds', '0006_auto_20170714_2224'), + ] + + operations = [ + migrations.AlterModelOptions( + name='birdsighting', + options={'get_latest_by': 'date', 'verbose_name_plural': 'Bird Sighting'}, + ), + migrations.RemoveField( + model_name='birdsighting', + name='images', + ), + migrations.AddField( + model_name='birdsighting', + name='image', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='photos.LuxImage'), + ), + migrations.AlterField( + model_name='birdsighting', + name='point', + field=django.contrib.gis.db.models.fields.PointField(blank=True, srid=4326), + ), + ] diff --git a/bak/unused_apps/birds/migrations/0008_auto_20170821_1418.py b/bak/unused_apps/birds/migrations/0008_auto_20170821_1418.py new file mode 100644 index 0000000..e5c80a4 --- /dev/null +++ b/bak/unused_apps/birds/migrations/0008_auto_20170821_1418.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2017-08-21 14:18 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('birds', '0007_auto_20170821_1415'), + ] + + operations = [ + migrations.RenameField( + model_name='birdsighting', + old_name='image', + new_name='images', + ), + ] diff --git a/bak/unused_apps/birds/migrations/0009_auto_20170821_1429.py b/bak/unused_apps/birds/migrations/0009_auto_20170821_1429.py new file mode 100644 index 0000000..840d7d3 --- /dev/null +++ b/bak/unused_apps/birds/migrations/0009_auto_20170821_1429.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2017-08-21 14:29 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('birds', '0008_auto_20170821_1418'), + ] + + operations = [ + migrations.RenameField( + model_name='birdsighting', + old_name='images', + new_name='image', + ), + ] diff --git a/bak/unused_apps/birds/migrations/0010_auto_20170906_2100.py b/bak/unused_apps/birds/migrations/0010_auto_20170906_2100.py new file mode 100644 index 0000000..aada189 --- /dev/null +++ b/bak/unused_apps/birds/migrations/0010_auto_20170906_2100.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2017-09-06 21:00 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('photos', '0018_auto_20161130_1218'), + ('birds', '0009_auto_20170821_1429'), + ] + + operations = [ + migrations.RemoveField( + model_name='birdsighting', + name='image', + ), + migrations.AddField( + model_name='birdsighting', + name='images', + field=models.ManyToManyField(blank=True, to='photos.LuxImage'), + ), + ] diff --git a/bak/unused_apps/birds/migrations/0011_auto_20180126_1456.py b/bak/unused_apps/birds/migrations/0011_auto_20180126_1456.py new file mode 100644 index 0000000..d63cf10 --- /dev/null +++ b/bak/unused_apps/birds/migrations/0011_auto_20180126_1456.py @@ -0,0 +1,48 @@ +# Generated by Django 2.0.1 on 2018-01-26 14:56 + +import birds.models +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('birds', '0010_auto_20170906_2100'), + ] + + operations = [ + migrations.CreateModel( + name='AP', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('common_name', models.CharField(max_length=200)), + ('slug', models.SlugField()), + ('scientific_name', models.CharField(max_length=200)), + ('code', models.IntegerField(choices=[(1, 'regular occurring - common'), (2, 'regular occurring - less common'), (3, 'rare'), (4, 'casual'), (5, 'accidental'), (6, 'Cannot be found')], default=0)), + ('image', models.FileField(blank=True, help_text='width of high res is 1360px', null=True, upload_to=birds.models.get_upload_path)), + ('image_credit', models.CharField(blank=True, max_length=200, null=True)), + ], + options={ + 'ordering': ['common_name'], + }, + ), + migrations.CreateModel( + name='APClass', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('common_name', models.CharField(max_length=200)), + ('scientific_name', models.CharField(max_length=200)), + ('kind', models.IntegerField(choices=[(1, 'Bird'), (2, 'Mammal'), (3, 'Reptile'), (4, 'Amphibian'), (5, 'Plant')], default=1)), + ], + options={ + 'verbose_name_plural': 'Animal/Plant Class', + 'ordering': ['kind', 'common_name'], + }, + ), + migrations.AddField( + model_name='ap', + name='apclass', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='birds.APClass'), + ), + ] diff --git a/bak/unused_apps/birds/migrations/0012_auto_20180126_1739.py b/bak/unused_apps/birds/migrations/0012_auto_20180126_1739.py new file mode 100644 index 0000000..307aa42 --- /dev/null +++ b/bak/unused_apps/birds/migrations/0012_auto_20180126_1739.py @@ -0,0 +1,44 @@ +# Generated by Django 2.0.1 on 2018-01-26 17:39 + +from django.conf import settings +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', '0002_checkin'), + ('photos', '0018_auto_20161130_1218'), + ('contenttypes', '0002_remove_content_type_name'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('birds', '0011_auto_20180126_1456'), + ] + + operations = [ + migrations.CreateModel( + name='Sighting', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('object_id', models.PositiveIntegerField()), + ('point', django.contrib.gis.db.models.fields.PointField(blank=True, srid=4326)), + ('date', models.DateTimeField(default=django.utils.timezone.now, verbose_name='Date')), + ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')), + ('images', models.ManyToManyField(blank=True, to='photos.LuxImage')), + ('location', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')), + ('seen_by', models.ManyToManyField(to=settings.AUTH_USER_MODEL)), + ], + ), + migrations.AlterField( + model_name='ap', + name='code', + field=models.IntegerField(choices=[(0, 'unknown'), (1, 'regular occurring - common'), (2, 'regular occurring - less common'), (3, 'rare'), (4, 'casual'), (5, 'accidental'), (6, 'Cannot be found')], default=0), + ), + migrations.AlterField( + model_name='bird', + name='code', + field=models.IntegerField(choices=[(0, 'unknown'), (1, 'regular occurring - common'), (2, 'regular occurring - less common'), (3, 'rare'), (4, 'casual'), (5, 'accidental'), (6, 'Cannot be found')], default=0), + ), + ] diff --git a/bak/unused_apps/birds/migrations/0013_auto_20180126_2010.py b/bak/unused_apps/birds/migrations/0013_auto_20180126_2010.py new file mode 100644 index 0000000..613597a --- /dev/null +++ b/bak/unused_apps/birds/migrations/0013_auto_20180126_2010.py @@ -0,0 +1,28 @@ +# Generated by Django 2.0.1 on 2018-01-26 20:10 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('birds', '0012_auto_20180126_1739'), + ] + + operations = [ + migrations.RemoveField( + model_name='sighting', + name='content_type', + ), + migrations.RemoveField( + model_name='sighting', + name='object_id', + ), + migrations.AddField( + model_name='sighting', + name='ap', + field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='birds.AP'), + preserve_default=False, + ), + ] diff --git a/bak/unused_apps/birds/migrations/0014_auto_20180128_0902.py b/bak/unused_apps/birds/migrations/0014_auto_20180128_0902.py new file mode 100644 index 0000000..97791ef --- /dev/null +++ b/bak/unused_apps/birds/migrations/0014_auto_20180128_0902.py @@ -0,0 +1,21 @@ +# Generated by Django 2.0.1 on 2018-01-28 09:02 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('birds', '0013_auto_20180126_2010'), + ] + + operations = [ + migrations.AlterModelOptions( + name='ap', + options={'ordering': ['common_name'], 'verbose_name': 'Animal/Plant', 'verbose_name_plural': 'Animal/Plant'}, + ), + migrations.AlterModelOptions( + name='sighting', + options={'ordering': ['date']}, + ), + ] diff --git a/bak/unused_apps/birds/migrations/__init__.py b/bak/unused_apps/birds/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/bak/unused_apps/birds/migrations/__init__.py |