diff options
Diffstat (limited to 'app/birds/migrations')
-rw-r--r-- | app/birds/migrations/0001_initial.py | 86 | ||||
-rw-r--r-- | app/birds/migrations/0002_auto_20160313_0953.py | 26 | ||||
-rw-r--r-- | app/birds/migrations/0003_birdsighting_images.py | 21 | ||||
-rw-r--r-- | app/birds/migrations/0004_auto_20160321_1123.py | 24 | ||||
-rw-r--r-- | app/birds/migrations/0005_auto_20170714_2222.py | 25 | ||||
-rw-r--r-- | app/birds/migrations/0006_auto_20170714_2224.py | 25 | ||||
-rw-r--r-- | app/birds/migrations/0007_auto_20170821_1415.py | 36 | ||||
-rw-r--r-- | app/birds/migrations/0008_auto_20170821_1418.py | 20 | ||||
-rw-r--r-- | app/birds/migrations/0009_auto_20170821_1429.py | 20 | ||||
-rw-r--r-- | app/birds/migrations/0010_auto_20170906_2100.py | 25 | ||||
-rw-r--r-- | app/birds/migrations/__init__.py | 0 |
11 files changed, 0 insertions, 308 deletions
diff --git a/app/birds/migrations/0001_initial.py b/app/birds/migrations/0001_initial.py deleted file mode 100644 index b20387e..0000000 --- a/app/birds/migrations/0001_initial.py +++ /dev/null @@ -1,86 +0,0 @@ -# -*- 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/app/birds/migrations/0002_auto_20160313_0953.py b/app/birds/migrations/0002_auto_20160313_0953.py deleted file mode 100644 index a2085ea..0000000 --- a/app/birds/migrations/0002_auto_20160313_0953.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- 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/app/birds/migrations/0003_birdsighting_images.py b/app/birds/migrations/0003_birdsighting_images.py deleted file mode 100644 index d20e8b7..0000000 --- a/app/birds/migrations/0003_birdsighting_images.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- 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/app/birds/migrations/0004_auto_20160321_1123.py b/app/birds/migrations/0004_auto_20160321_1123.py deleted file mode 100644 index 7672a18..0000000 --- a/app/birds/migrations/0004_auto_20160321_1123.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- 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/app/birds/migrations/0005_auto_20170714_2222.py b/app/birds/migrations/0005_auto_20170714_2222.py deleted file mode 100644 index 8bdfb4b..0000000 --- a/app/birds/migrations/0005_auto_20170714_2222.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- 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/app/birds/migrations/0006_auto_20170714_2224.py b/app/birds/migrations/0006_auto_20170714_2224.py deleted file mode 100644 index bd4db82..0000000 --- a/app/birds/migrations/0006_auto_20170714_2224.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- 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/app/birds/migrations/0007_auto_20170821_1415.py b/app/birds/migrations/0007_auto_20170821_1415.py deleted file mode 100644 index a51776c..0000000 --- a/app/birds/migrations/0007_auto_20170821_1415.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- 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/app/birds/migrations/0008_auto_20170821_1418.py b/app/birds/migrations/0008_auto_20170821_1418.py deleted file mode 100644 index e5c80a4..0000000 --- a/app/birds/migrations/0008_auto_20170821_1418.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- 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/app/birds/migrations/0009_auto_20170821_1429.py b/app/birds/migrations/0009_auto_20170821_1429.py deleted file mode 100644 index 840d7d3..0000000 --- a/app/birds/migrations/0009_auto_20170821_1429.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- 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/app/birds/migrations/0010_auto_20170906_2100.py b/app/birds/migrations/0010_auto_20170906_2100.py deleted file mode 100644 index aada189..0000000 --- a/app/birds/migrations/0010_auto_20170906_2100.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- 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/app/birds/migrations/__init__.py b/app/birds/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 --- a/app/birds/migrations/__init__.py +++ /dev/null |