From 42192469097b6160992fe03115e0cab7fc61cb8c Mon Sep 17 00:00:00 2001 From: j Date: Fri, 19 Feb 2016 17:35:15 +0000 Subject: [PATCH] db migration --- pandora/annotation/migrations/0001_initial.py | 32 ++++ .../migrations/0002_annotation_clip.py | 24 +++ .../migrations/0003_auto_20160219_1537.py | 31 +++ pandora/app/migrations/0001_initial.py | 36 ++++ pandora/archive/migrations/0001_initial.py | 125 ++++++++++++ .../migrations/0002_auto_20160219_1537.py | 40 ++++ pandora/changelog/migrations/0001_initial.py | 40 ++++ pandora/clip/migrations/0001_initial.py | 50 +++++ .../migrations/0002_auto_20160219_1537.py | 33 ++++ pandora/document/migrations/0001_initial.py | 53 ++++++ .../migrations/0002_auto_20160219_1537.py | 44 +++++ pandora/edit/migrations/0001_initial.py | 73 +++++++ .../migrations/0002_auto_20160219_1537.py | 32 ++++ pandora/entity/migrations/0001_initial.py | 74 +++++++ pandora/event/migrations/0001_initial.py | 41 ++++ .../migrations/0002_auto_20160219_1537.py | 31 +++ pandora/item/migrations/0001_initial.py | 180 ++++++++++++++++++ .../migrations/0002_auto_20160219_1734.py | 21 ++ pandora/itemlist/migrations/0001_initial.py | 84 ++++++++ pandora/log/migrations/0001_initial.py | 31 +++ pandora/news/migrations/0001_initial.py | 27 +++ pandora/person/migrations/0001_initial.py | 31 +++ pandora/place/migrations/0001_initial.py | 54 ++++++ pandora/sequence/migrations/0001_initial.py | 34 ++++ pandora/settings.py | 2 +- pandora/text/migrations/0001_initial.py | 68 +++++++ pandora/title/migrations/0001_initial.py | 27 +++ pandora/tv/migrations/0001_initial.py | 42 ++++ .../tv/migrations/0002_auto_20160219_1734.py | 21 ++ pandora/urlalias/migrations/0001_initial.py | 48 +++++ pandora/user/migrations/0001_initial.py | 58 ++++++ .../migrations/0002_auto_20160219_1734.py | 27 +++ 32 files changed, 1513 insertions(+), 1 deletion(-) create mode 100644 pandora/annotation/migrations/0001_initial.py create mode 100644 pandora/annotation/migrations/0002_annotation_clip.py create mode 100644 pandora/annotation/migrations/0003_auto_20160219_1537.py create mode 100644 pandora/app/migrations/0001_initial.py create mode 100644 pandora/archive/migrations/0001_initial.py create mode 100644 pandora/archive/migrations/0002_auto_20160219_1537.py create mode 100644 pandora/changelog/migrations/0001_initial.py create mode 100644 pandora/clip/migrations/0001_initial.py create mode 100644 pandora/clip/migrations/0002_auto_20160219_1537.py create mode 100644 pandora/document/migrations/0001_initial.py create mode 100644 pandora/document/migrations/0002_auto_20160219_1537.py create mode 100644 pandora/edit/migrations/0001_initial.py create mode 100644 pandora/edit/migrations/0002_auto_20160219_1537.py create mode 100644 pandora/entity/migrations/0001_initial.py create mode 100644 pandora/event/migrations/0001_initial.py create mode 100644 pandora/event/migrations/0002_auto_20160219_1537.py create mode 100644 pandora/item/migrations/0001_initial.py create mode 100644 pandora/item/migrations/0002_auto_20160219_1734.py create mode 100644 pandora/itemlist/migrations/0001_initial.py create mode 100644 pandora/log/migrations/0001_initial.py create mode 100644 pandora/news/migrations/0001_initial.py create mode 100644 pandora/person/migrations/0001_initial.py create mode 100644 pandora/place/migrations/0001_initial.py create mode 100644 pandora/sequence/migrations/0001_initial.py create mode 100644 pandora/text/migrations/0001_initial.py create mode 100644 pandora/title/migrations/0001_initial.py create mode 100644 pandora/tv/migrations/0001_initial.py create mode 100644 pandora/tv/migrations/0002_auto_20160219_1734.py create mode 100644 pandora/urlalias/migrations/0001_initial.py create mode 100644 pandora/user/migrations/0001_initial.py create mode 100644 pandora/user/migrations/0002_auto_20160219_1734.py diff --git a/pandora/annotation/migrations/0001_initial.py b/pandora/annotation/migrations/0001_initial.py new file mode 100644 index 00000000..17e97e2e --- /dev/null +++ b/pandora/annotation/migrations/0001_initial.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Annotation', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('public_id', models.CharField(max_length=128, unique=True)), + ('start', models.FloatField(db_index=True, default=-1)), + ('end', models.FloatField(db_index=True, default=-1)), + ('layer', models.CharField(db_index=True, max_length=255)), + ('value', models.TextField()), + ('findvalue', models.TextField(null=True)), + ('sortvalue', models.CharField(blank=True, db_index=True, max_length=1000, null=True)), + ('languages', models.CharField(blank=True, max_length=255, null=True)), + ], + ), + ] diff --git a/pandora/annotation/migrations/0002_annotation_clip.py b/pandora/annotation/migrations/0002_annotation_clip.py new file mode 100644 index 00000000..a3d79fbb --- /dev/null +++ b/pandora/annotation/migrations/0002_annotation_clip.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('annotation', '0001_initial'), + ('clip', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='annotation', + name='clip', + field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='annotations', to='clip.Clip'), + ), + ] diff --git a/pandora/annotation/migrations/0003_auto_20160219_1537.py b/pandora/annotation/migrations/0003_auto_20160219_1537.py new file mode 100644 index 00000000..7b025664 --- /dev/null +++ b/pandora/annotation/migrations/0003_auto_20160219_1537.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('annotation', '0002_annotation_clip'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('item', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='annotation', + name='item', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='annotations', to='item.Item'), + ), + migrations.AddField( + model_name='annotation', + name='user', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='annotations', to=settings.AUTH_USER_MODEL), + ), + ] diff --git a/pandora/app/migrations/0001_initial.py b/pandora/app/migrations/0001_initial.py new file mode 100644 index 00000000..c594c33c --- /dev/null +++ b/pandora/app/migrations/0001_initial.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Page', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('name', models.CharField(max_length=1024, unique=True)), + ('text', models.TextField(blank=True)), + ], + ), + migrations.CreateModel( + name='Settings', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('key', models.CharField(max_length=1024, unique=True)), + ('value', models.TextField(blank=True)), + ], + ), + ] diff --git a/pandora/archive/migrations/0001_initial.py b/pandora/archive/migrations/0001_initial.py new file mode 100644 index 00000000..653119e6 --- /dev/null +++ b/pandora/archive/migrations/0001_initial.py @@ -0,0 +1,125 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +import archive.models +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import ox.django.fields + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='File', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('oshash', models.CharField(max_length=16, unique=True)), + ('path', models.CharField(default=b'', max_length=2048)), + ('sort_path', models.CharField(default=b'', max_length=2048)), + ('type', models.CharField(default=b'', max_length=255)), + ('extension', models.CharField(default=b'', max_length=255, null=True)), + ('language', models.CharField(default=b'', max_length=255, null=True)), + ('part', models.CharField(default=b'', max_length=255, null=True)), + ('part_title', models.CharField(default=b'', max_length=255, null=True)), + ('version', models.CharField(default=b'', max_length=255, null=True)), + ('size', models.BigIntegerField(default=0)), + ('duration', models.FloatField(null=True)), + ('info', ox.django.fields.DictField(default={})), + ('video_codec', models.CharField(max_length=255)), + ('pixel_format', models.CharField(max_length=255)), + ('display_aspect_ratio', models.CharField(max_length=255)), + ('width', models.IntegerField(default=0)), + ('height', models.IntegerField(default=0)), + ('framerate', models.CharField(max_length=255)), + ('audio_codec', models.CharField(max_length=255)), + ('channels', models.IntegerField(default=0)), + ('samplerate', models.IntegerField(default=0)), + ('bits_per_pixel', models.FloatField(default=-1)), + ('pixels', models.BigIntegerField(default=0)), + ('available', models.BooleanField(default=False)), + ('selected', models.BooleanField(default=False)), + ('uploading', models.BooleanField(default=False)), + ('queued', models.BooleanField(default=False)), + ('encoding', models.BooleanField(default=False)), + ('wanted', models.BooleanField(default=False)), + ('failed', models.BooleanField(default=False)), + ('is_audio', models.BooleanField(default=False)), + ('is_video', models.BooleanField(default=False)), + ('is_subtitle', models.BooleanField(default=False)), + ('data', models.FileField(blank=True, null=True, upload_to=archive.models.get_data_path)), + ], + ), + migrations.CreateModel( + name='Frame', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('position', models.FloatField()), + ('frame', models.ImageField(default=None, null=True, upload_to=archive.models.frame_path)), + ('width', models.IntegerField(default=0)), + ('height', models.IntegerField(default=0)), + ('file', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='frames', to='archive.File')), + ], + ), + migrations.CreateModel( + name='Instance', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('atime', models.IntegerField(default=archive.models.inttime, editable=False)), + ('ctime', models.IntegerField(default=archive.models.inttime, editable=False)), + ('mtime', models.IntegerField(default=archive.models.inttime, editable=False)), + ('path', models.CharField(max_length=2048)), + ('ignore', models.BooleanField(default=False)), + ('file', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='instances', to='archive.File')), + ], + ), + migrations.CreateModel( + name='Stream', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('resolution', models.IntegerField(default=96)), + ('format', models.CharField(default=b'webm', max_length=255)), + ('media', models.FileField(blank=True, default=None, upload_to=archive.models.get_path)), + ('available', models.BooleanField(default=False)), + ('oshash', models.CharField(db_index=True, max_length=16, null=True)), + ('info', ox.django.fields.DictField(default={})), + ('duration', models.FloatField(default=0)), + ('aspect_ratio', models.FloatField(default=0)), + ('cuts', ox.django.fields.TupleField(default=[])), + ('color', ox.django.fields.TupleField(default=[])), + ('volume', models.FloatField(default=0)), + ('error', models.TextField(blank=True, default=b'')), + ('file', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='streams', to='archive.File')), + ('source', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='derivatives', to='archive.Stream')), + ], + ), + migrations.CreateModel( + name='Volume', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('name', models.CharField(max_length=1024)), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='volumes', to=settings.AUTH_USER_MODEL)), + ], + ), + migrations.AddField( + model_name='instance', + name='volume', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='files', to='archive.Volume'), + ), + ] diff --git a/pandora/archive/migrations/0002_auto_20160219_1537.py b/pandora/archive/migrations/0002_auto_20160219_1537.py new file mode 100644 index 00000000..4b47198e --- /dev/null +++ b/pandora/archive/migrations/0002_auto_20160219_1537.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('archive', '0001_initial'), + ('item', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='file', + name='item', + field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='files', to='item.Item'), + ), + migrations.AlterUniqueTogether( + name='volume', + unique_together=set([('user', 'name')]), + ), + migrations.AlterUniqueTogether( + name='stream', + unique_together=set([('file', 'resolution', 'format')]), + ), + migrations.AlterUniqueTogether( + name='instance', + unique_together=set([('path', 'volume')]), + ), + migrations.AlterUniqueTogether( + name='frame', + unique_together=set([('file', 'position')]), + ), + ] diff --git a/pandora/changelog/migrations/0001_initial.py b/pandora/changelog/migrations/0001_initial.py new file mode 100644 index 00000000..e76c111c --- /dev/null +++ b/pandora/changelog/migrations/0001_initial.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import ox.django.fields + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='Changelog', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('type', models.CharField(db_index=True, max_length=255)), + ('value', ox.django.fields.DictField(default={})), + ], + ), + migrations.CreateModel( + name='Log', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('action', models.CharField(db_index=True, max_length=255)), + ('data', ox.django.fields.DictField(default={})), + ('created', models.DateTimeField(db_index=True)), + ('changeid', models.TextField()), + ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='changelog', to=settings.AUTH_USER_MODEL)), + ], + ), + ] diff --git a/pandora/clip/migrations/0001_initial.py b/pandora/clip/migrations/0001_initial.py new file mode 100644 index 00000000..1664f6d3 --- /dev/null +++ b/pandora/clip/migrations/0001_initial.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +import clip.models +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Clip', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('aspect_ratio', models.FloatField(default=0)), + ('user', models.IntegerField(db_index=True, null=True)), + ('start', models.FloatField(db_index=True, default=-1)), + ('end', models.FloatField(default=-1)), + ('duration', models.FloatField(db_index=True, default=0)), + ('hue', models.FloatField(db_index=True, default=0)), + ('saturation', models.FloatField(db_index=True, default=0)), + ('lightness', models.FloatField(db_index=True, default=0)), + ('volume', models.FloatField(db_index=True, default=0, null=True)), + ('sortvalue', models.CharField(db_index=True, max_length=1000, null=True)), + ('findvalue', models.TextField(db_index=True, null=True)), + ('places', models.BooleanField(db_index=True, default=False)), + ('events', models.BooleanField(db_index=True, default=False)), + ('keywords', models.BooleanField(db_index=True, default=False)), + ('descriptions', models.BooleanField(db_index=True, default=False)), + ('transcripts', models.BooleanField(db_index=True, default=False)), + ], + bases=(clip.models.MetaClip, models.Model), + ), + migrations.CreateModel( + name='Random', + fields=[ + ('clip', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='clip.Clip')), + ('random', models.BigIntegerField(db_index=True, null=True)), + ], + ), + ] diff --git a/pandora/clip/migrations/0002_auto_20160219_1537.py b/pandora/clip/migrations/0002_auto_20160219_1537.py new file mode 100644 index 00000000..f654ab0c --- /dev/null +++ b/pandora/clip/migrations/0002_auto_20160219_1537.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('clip', '0001_initial'), + ('item', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='clip', + name='item', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='clips', to='item.Item'), + ), + migrations.AddField( + model_name='clip', + name='sort', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='matching_clips', to='item.ItemSort'), + ), + migrations.AlterUniqueTogether( + name='clip', + unique_together=set([('item', 'start', 'end')]), + ), + ] diff --git a/pandora/document/migrations/0001_initial.py b/pandora/document/migrations/0001_initial.py new file mode 100644 index 00000000..20b92e62 --- /dev/null +++ b/pandora/document/migrations/0001_initial.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion +import document.models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Document', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('name', models.CharField(max_length=255)), + ('extension', models.CharField(max_length=255)), + ('size', models.IntegerField(default=0)), + ('matches', models.IntegerField(default=0)), + ('ratio', models.FloatField(default=1)), + ('pages', models.IntegerField(default=-1)), + ('width', models.IntegerField(default=-1)), + ('height', models.IntegerField(default=-1)), + ('description', models.TextField(default=b'')), + ('oshash', models.CharField(max_length=16, null=True, unique=True)), + ('file', models.FileField(blank=True, default=None, null=True, upload_to=document.models.get_path)), + ('uploading', models.BooleanField(default=False)), + ('name_sort', models.CharField(max_length=255, null=True)), + ('description_sort', models.CharField(max_length=512, null=True)), + ('dimensions_sort', models.CharField(max_length=512)), + ], + ), + migrations.CreateModel( + name='ItemProperties', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('description', models.TextField(default=b'')), + ('index', models.IntegerField(default=0)), + ('description_sort', models.CharField(max_length=512, null=True)), + ('document', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='descriptions', to='document.Document')), + ], + ), + ] diff --git a/pandora/document/migrations/0002_auto_20160219_1537.py b/pandora/document/migrations/0002_auto_20160219_1537.py new file mode 100644 index 00000000..175f1410 --- /dev/null +++ b/pandora/document/migrations/0002_auto_20160219_1537.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('document', '0001_initial'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('item', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='itemproperties', + name='item', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='item.Item'), + ), + migrations.AddField( + model_name='document', + name='items', + field=models.ManyToManyField(related_name='documents', through='document.ItemProperties', to='item.Item'), + ), + migrations.AddField( + model_name='document', + name='user', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='files', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterUniqueTogether( + name='itemproperties', + unique_together=set([('item', 'document')]), + ), + migrations.AlterUniqueTogether( + name='document', + unique_together=set([('user', 'name', 'extension')]), + ), + ] diff --git a/pandora/edit/migrations/0001_initial.py b/pandora/edit/migrations/0001_initial.py new file mode 100644 index 00000000..cb4e3a58 --- /dev/null +++ b/pandora/edit/migrations/0001_initial.py @@ -0,0 +1,73 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import edit.models +import ox.django.fields + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('annotation', '0002_annotation_clip'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='Clip', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('index', models.IntegerField(default=0)), + ('start', models.FloatField(default=0)), + ('end', models.FloatField(default=0)), + ('duration', models.FloatField(default=0)), + ('hue', models.FloatField(default=0)), + ('saturation', models.FloatField(default=0)), + ('lightness', models.FloatField(default=0)), + ('volume', models.FloatField(default=0)), + ('sortvalue', models.CharField(db_index=True, max_length=1000, null=True)), + ('annotation', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='editclip', to='annotation.Annotation')), + ], + ), + migrations.CreateModel( + name='Edit', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('name', models.CharField(max_length=255)), + ('status', models.CharField(default=b'private', max_length=20)), + ('description', models.TextField(default=b'')), + ('rightslevel', models.IntegerField(db_index=True, default=0)), + ('query', ox.django.fields.DictField(default={b'static': True})), + ('type', models.CharField(default=b'static', max_length=255)), + ('icon', models.ImageField(blank=True, default=None, null=True, upload_to=edit.models.get_icon_path)), + ('poster_frames', ox.django.fields.TupleField(default=[], editable=False)), + ('subscribed_users', models.ManyToManyField(related_name='subscribed_edits', to=settings.AUTH_USER_MODEL)), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='edits', to=settings.AUTH_USER_MODEL)), + ], + ), + migrations.CreateModel( + name='Position', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('section', models.CharField(max_length=255)), + ('position', models.IntegerField(default=0)), + ('edit', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='position', to='edit.Edit')), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='edit_position', to=settings.AUTH_USER_MODEL)), + ], + ), + migrations.AddField( + model_name='clip', + name='edit', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='clips', to='edit.Edit'), + ), + ] diff --git a/pandora/edit/migrations/0002_auto_20160219_1537.py b/pandora/edit/migrations/0002_auto_20160219_1537.py new file mode 100644 index 00000000..9be9667b --- /dev/null +++ b/pandora/edit/migrations/0002_auto_20160219_1537.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('edit', '0001_initial'), + ('item', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='clip', + name='item', + field=models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='editclip', to='item.Item'), + ), + migrations.AlterUniqueTogether( + name='position', + unique_together=set([('user', 'edit', 'section')]), + ), + migrations.AlterUniqueTogether( + name='edit', + unique_together=set([('user', 'name')]), + ), + ] diff --git a/pandora/entity/migrations/0001_initial.py b/pandora/entity/migrations/0001_initial.py new file mode 100644 index 00000000..8a42e100 --- /dev/null +++ b/pandora/entity/migrations/0001_initial.py @@ -0,0 +1,74 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import ox.django.fields + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('document', '0001_initial'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='DocumentProperties', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('index', models.IntegerField(default=0)), + ('document', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='document.Document')), + ], + ), + migrations.CreateModel( + name='Entity', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('type', models.CharField(max_length=255)), + ('name', models.CharField(max_length=255)), + ('alternativeNames', ox.django.fields.TupleField(default=[])), + ('data', ox.django.fields.DictField(default={}, editable=False)), + ('matches', models.IntegerField(default=0)), + ('name_sort', models.CharField(max_length=255, null=True)), + ('name_find', models.TextField(default=b'')), + ('documents', models.ManyToManyField(related_name='entities', through='entity.DocumentProperties', to='document.Document')), + ('user', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='entities', to=settings.AUTH_USER_MODEL)), + ], + ), + migrations.CreateModel( + name='Find', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('key', models.CharField(db_index=True, max_length=200)), + ('value', models.TextField(blank=True, db_index=True)), + ('entity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='find', to='entity.Entity')), + ], + ), + migrations.AddField( + model_name='documentproperties', + name='entity', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='documentproperties', to='entity.Entity'), + ), + migrations.AlterUniqueTogether( + name='find', + unique_together=set([('entity', 'key')]), + ), + migrations.AlterUniqueTogether( + name='entity', + unique_together=set([('type', 'name')]), + ), + migrations.AlterUniqueTogether( + name='documentproperties', + unique_together=set([('entity', 'document')]), + ), + ] diff --git a/pandora/event/migrations/0001_initial.py b/pandora/event/migrations/0001_initial.py new file mode 100644 index 00000000..2834a433 --- /dev/null +++ b/pandora/event/migrations/0001_initial.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.db import migrations, models +import ox.django.fields + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('annotation', '0002_annotation_clip'), + ] + + operations = [ + migrations.CreateModel( + name='Event', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('defined', models.BooleanField(default=False)), + ('name', models.CharField(max_length=255, null=True, unique=True)), + ('name_sort', models.CharField(db_index=True, max_length=255, null=True)), + ('name_find', models.TextField(default=b'')), + ('wikipediaId', models.CharField(blank=True, max_length=1000)), + ('alternativeNames', ox.django.fields.TupleField(default=[])), + ('start', models.CharField(default=b'', max_length=255)), + ('startTime', models.BigIntegerField(default=None, null=True)), + ('end', models.CharField(default=b'', max_length=255)), + ('endTime', models.BigIntegerField(default=None, null=True)), + ('duration', models.CharField(default=b'', max_length=255)), + ('durationTime', models.BigIntegerField(default=None, null=True)), + ('type', models.CharField(default=b'', max_length=255)), + ('matches', models.IntegerField(default=0)), + ('annotations', models.ManyToManyField(blank=True, related_name='events', to='annotation.Annotation')), + ], + ), + ] diff --git a/pandora/event/migrations/0002_auto_20160219_1537.py b/pandora/event/migrations/0002_auto_20160219_1537.py new file mode 100644 index 00000000..9283cab1 --- /dev/null +++ b/pandora/event/migrations/0002_auto_20160219_1537.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('event', '0001_initial'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('item', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='event', + name='items', + field=models.ManyToManyField(blank=True, related_name='events', to='item.Item'), + ), + migrations.AddField( + model_name='event', + name='user', + field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='events', to=settings.AUTH_USER_MODEL), + ), + ] diff --git a/pandora/item/migrations/0001_initial.py b/pandora/item/migrations/0001_initial.py new file mode 100644 index 00000000..021e910a --- /dev/null +++ b/pandora/item/migrations/0001_initial.py @@ -0,0 +1,180 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import item.models +import ox.django.fields + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('auth', '__first__'), + ] + + operations = [ + migrations.CreateModel( + name='Access', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('access', models.DateTimeField(auto_now=True)), + ('accessed', models.IntegerField(default=0)), + ], + ), + migrations.CreateModel( + name='AnnotationSequence', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('value', models.BigIntegerField(default=1)), + ], + ), + migrations.CreateModel( + name='Description', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('key', models.CharField(db_index=True, max_length=200)), + ('value', models.CharField(db_index=True, max_length=1000)), + ('description', models.TextField()), + ], + ), + migrations.CreateModel( + name='Facet', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('key', models.CharField(db_index=True, max_length=200)), + ('value', models.CharField(db_index=True, max_length=1000)), + ('sortvalue', models.CharField(db_index=True, max_length=1000)), + ], + ), + migrations.CreateModel( + name='Item', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('rendered', models.BooleanField(db_index=True, default=False)), + ('level', models.IntegerField(db_index=True)), + ('public_id', models.CharField(blank=True, max_length=128, unique=True)), + ('oxdbId', models.CharField(blank=True, max_length=42, null=True, unique=True)), + ('external_data', ox.django.fields.DictField(default={}, editable=False)), + ('data', ox.django.fields.DictField(default={}, editable=False)), + ('json', ox.django.fields.DictField(default={}, editable=False)), + ('poster', models.ImageField(blank=True, default=None, upload_to=item.models.get_poster_path)), + ('poster_source', models.TextField(blank=True)), + ('poster_height', models.IntegerField(default=0)), + ('poster_width', models.IntegerField(default=0)), + ('poster_frame', models.FloatField(default=-1)), + ('icon', models.ImageField(blank=True, default=None, upload_to=item.models.get_icon_path)), + ('torrent', models.FileField(blank=True, default=None, max_length=1000, upload_to=item.models.get_torrent_path)), + ('stream_info', ox.django.fields.DictField(default={}, editable=False)), + ('stream_aspect', models.FloatField(default=1.3333333333333333)), + ], + ), + migrations.CreateModel( + name='ItemFind', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('key', models.CharField(db_index=True, max_length=200)), + ('value', models.TextField(blank=True, db_index=True)), + ], + ), + migrations.CreateModel( + name='ItemSort', + fields=[ + ('item', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='sort', serialize=False, to='item.Item')), + ('duration', models.FloatField(blank=True, db_index=True, null=True)), + ('width', models.BigIntegerField(blank=True, db_index=True, null=True)), + ('height', models.BigIntegerField(blank=True, db_index=True, null=True)), + ('created', models.DateTimeField(blank=True, db_index=True, null=True)), + ('title', models.CharField(db_index=True, max_length=1000, null=True)), + ('source', models.CharField(db_index=True, max_length=1000, null=True)), + ('project', models.CharField(db_index=True, max_length=1000, null=True)), + ('topic', models.CharField(db_index=True, max_length=1000, null=True)), + ('director', models.CharField(db_index=True, max_length=1000, null=True)), + ('cinematographer', models.CharField(db_index=True, max_length=1000, null=True)), + ('featuring', models.CharField(db_index=True, max_length=1000, null=True)), + ('language', models.CharField(db_index=True, max_length=1000, null=True)), + ('location', models.CharField(db_index=True, max_length=1000, null=True)), + ('date', models.CharField(db_index=True, max_length=1000, null=True)), + ('public_id', models.CharField(db_index=True, max_length=1000, null=True)), + ('numberofannotations', models.BigIntegerField(blank=True, db_index=True, null=True)), + ('resolution', models.BigIntegerField(blank=True, db_index=True, null=True)), + ('aspectratio', models.FloatField(blank=True, db_index=True, null=True)), + ('pixels', models.BigIntegerField(blank=True, db_index=True, null=True)), + ('hue', models.FloatField(blank=True, db_index=True, null=True)), + ('saturation', models.FloatField(blank=True, db_index=True, null=True)), + ('lightness', models.FloatField(blank=True, db_index=True, null=True)), + ('volume', models.FloatField(blank=True, db_index=True, null=True)), + ('numberofcuts', models.BigIntegerField(blank=True, db_index=True, null=True)), + ('cutsperminute', models.FloatField(blank=True, db_index=True, null=True)), + ('words', models.BigIntegerField(blank=True, db_index=True, null=True)), + ('wordsperminute', models.FloatField(blank=True, db_index=True, null=True)), + ('size', models.BigIntegerField(blank=True, db_index=True, null=True)), + ('bitrate', models.BigIntegerField(blank=True, db_index=True, null=True)), + ('numberoffiles', models.BigIntegerField(blank=True, db_index=True, null=True)), + ('modified', models.DateTimeField(blank=True, db_index=True, null=True)), + ('accessed', models.DateTimeField(blank=True, db_index=True, null=True)), + ('timesaccessed', models.BigIntegerField(blank=True, db_index=True, null=True)), + ('license', models.CharField(db_index=True, max_length=1000, null=True)), + ('rightslevel', models.BigIntegerField(blank=True, db_index=True, null=True)), + ('random', models.BigIntegerField(blank=True, db_index=True, null=True)), + ], + ), + migrations.AddField( + model_name='itemfind', + name='item', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='find', to='item.Item'), + ), + migrations.AddField( + model_name='item', + name='groups', + field=models.ManyToManyField(blank=True, related_name='items', to='auth.Group'), + ), + migrations.AddField( + model_name='item', + name='user', + field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='items', to=settings.AUTH_USER_MODEL), + ), + migrations.AddField( + model_name='facet', + name='item', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='facets', to='item.Item'), + ), + migrations.AlterUniqueTogether( + name='description', + unique_together=set([('key', 'value')]), + ), + migrations.AddField( + model_name='annotationsequence', + name='item', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='_annotation_sequence', to='item.Item', unique=True), + ), + migrations.AddField( + model_name='access', + name='item', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='accessed', to='item.Item'), + ), + migrations.AddField( + model_name='access', + name='user', + field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='accessed_items', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterUniqueTogether( + name='itemfind', + unique_together=set([('item', 'key')]), + ), + migrations.AlterUniqueTogether( + name='facet', + unique_together=set([('item', 'key', 'value')]), + ), + migrations.AlterUniqueTogether( + name='access', + unique_together=set([('item', 'user')]), + ), + ] diff --git a/pandora/item/migrations/0002_auto_20160219_1734.py b/pandora/item/migrations/0002_auto_20160219_1734.py new file mode 100644 index 00000000..b6f6f425 --- /dev/null +++ b/pandora/item/migrations/0002_auto_20160219_1734.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 17:34 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('item', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='annotationsequence', + name='item', + field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='_annotation_sequence', to='item.Item'), + ), + ] diff --git a/pandora/itemlist/migrations/0001_initial.py b/pandora/itemlist/migrations/0001_initial.py new file mode 100644 index 00000000..f41745a4 --- /dev/null +++ b/pandora/itemlist/migrations/0001_initial.py @@ -0,0 +1,84 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import itemlist.models +import ox.django.fields + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('item', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='List', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('name', models.CharField(max_length=255)), + ('status', models.CharField(default=b'private', max_length=20)), + ('query', ox.django.fields.DictField(default={b'static': True})), + ('type', models.CharField(default=b'static', max_length=255)), + ('description', models.TextField(default=b'')), + ('icon', models.ImageField(blank=True, default=None, upload_to=itemlist.models.get_icon_path)), + ('view', models.TextField(default=itemlist.models.get_listview)), + ('sort', ox.django.fields.TupleField(default=itemlist.models.get_listsort, editable=False)), + ('poster_frames', ox.django.fields.TupleField(default=[], editable=False)), + ('numberofitems', models.IntegerField(default=0)), + ], + ), + migrations.CreateModel( + name='ListItem', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('index', models.IntegerField(default=0)), + ('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='item.Item')), + ('list', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='itemlist.List')), + ], + ), + migrations.CreateModel( + name='Position', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('section', models.CharField(max_length=255)), + ('position', models.IntegerField(default=0)), + ('list', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='position', to='itemlist.List')), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ], + ), + migrations.AddField( + model_name='list', + name='items', + field=models.ManyToManyField(related_name='lists', through='itemlist.ListItem', to='item.Item'), + ), + migrations.AddField( + model_name='list', + name='subscribed_users', + field=models.ManyToManyField(related_name='subscribed_lists', to=settings.AUTH_USER_MODEL), + ), + migrations.AddField( + model_name='list', + name='user', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='lists', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterUniqueTogether( + name='position', + unique_together=set([('user', 'list', 'section')]), + ), + migrations.AlterUniqueTogether( + name='list', + unique_together=set([('user', 'name')]), + ), + ] diff --git a/pandora/log/migrations/0001_initial.py b/pandora/log/migrations/0001_initial.py new file mode 100644 index 00000000..58c93cef --- /dev/null +++ b/pandora/log/migrations/0001_initial.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='Log', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True, db_index=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('url', models.CharField(default=b'', max_length=1000)), + ('line', models.IntegerField(default=0)), + ('text', models.TextField(blank=True)), + ('user', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ], + ), + ] diff --git a/pandora/news/migrations/0001_initial.py b/pandora/news/migrations/0001_initial.py new file mode 100644 index 00000000..af8ee1fa --- /dev/null +++ b/pandora/news/migrations/0001_initial.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='News', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('title', models.TextField()), + ('date', models.TextField()), + ('text', models.TextField()), + ], + ), + ] diff --git a/pandora/person/migrations/0001_initial.py b/pandora/person/migrations/0001_initial.py new file mode 100644 index 00000000..6bb8a2ac --- /dev/null +++ b/pandora/person/migrations/0001_initial.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.db import migrations, models +import ox.django.fields + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Person', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=200, unique=True)), + ('sortname', models.CharField(max_length=200)), + ('sortsortname', models.CharField(max_length=200)), + ('edited', models.BooleanField(default=False)), + ('numberofnames', models.IntegerField(default=0)), + ('aliases', ox.django.fields.TupleField(default=[])), + ('imdbId', models.CharField(blank=True, max_length=7)), + ('wikipediaId', models.CharField(blank=True, max_length=1000)), + ], + ), + ] diff --git a/pandora/place/migrations/0001_initial.py b/pandora/place/migrations/0001_initial.py new file mode 100644 index 00000000..1851fded --- /dev/null +++ b/pandora/place/migrations/0001_initial.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import ox.django.fields + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('annotation', '0002_annotation_clip'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('item', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='Place', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('defined', models.BooleanField(default=True)), + ('name', models.CharField(max_length=1024)), + ('alternativeNames', ox.django.fields.TupleField(default=[])), + ('name_sort', models.CharField(db_index=True, max_length=200)), + ('name_find', models.TextField(default=b'', editable=False)), + ('geoname', models.CharField(max_length=1024, null=True)), + ('geoname_sort', models.CharField(db_index=True, max_length=1024, null=True)), + ('countryCode', models.CharField(db_index=True, default=b'', max_length=16)), + ('wikipediaId', models.CharField(blank=True, max_length=1000)), + ('type', models.CharField(db_index=True, default=b'', max_length=1000)), + ('south', models.FloatField(db_index=True, default=None, null=True)), + ('west', models.FloatField(db_index=True, default=None, null=True)), + ('north', models.FloatField(db_index=True, default=None, null=True)), + ('east', models.FloatField(db_index=True, default=None, null=True)), + ('lat', models.FloatField(db_index=True, default=None, null=True)), + ('lng', models.FloatField(db_index=True, default=None, null=True)), + ('area', models.FloatField(db_index=True, default=None, null=True)), + ('matches', models.IntegerField(db_index=True, default=0)), + ('annotations', models.ManyToManyField(blank=True, related_name='places', to='annotation.Annotation')), + ('items', models.ManyToManyField(blank=True, related_name='places', to='item.Item')), + ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='places', to=settings.AUTH_USER_MODEL)), + ], + options={ + 'ordering': ('name_sort',), + }, + ), + ] diff --git a/pandora/sequence/migrations/0001_initial.py b/pandora/sequence/migrations/0001_initial.py new file mode 100644 index 00000000..42e5233f --- /dev/null +++ b/pandora/sequence/migrations/0001_initial.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('item', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='Sequence', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('mode', models.IntegerField(choices=[(0, b'shape'), (1, b'color')], default=0)), + ('hash', models.BigIntegerField(db_index=True, default=-9223372036854775808)), + ('start', models.FloatField(default=-1)), + ('end', models.FloatField(default=-1)), + ('duration', models.FloatField(default=0)), + ('sort', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='sequences', to='item.ItemSort')), + ], + ), + migrations.AlterUniqueTogether( + name='sequence', + unique_together=set([('sort', 'start', 'end', 'mode')]), + ), + ] diff --git a/pandora/settings.py b/pandora/settings.py index 46e0da39..97802735 100644 --- a/pandora/settings.py +++ b/pandora/settings.py @@ -115,7 +115,7 @@ INSTALLED_APPS = ( # 'django.contrib.admindocs', 'django.contrib.humanize', - #'django_extensions', + 'django_extensions', 'djcelery', 'app', 'log', diff --git a/pandora/text/migrations/0001_initial.py b/pandora/text/migrations/0001_initial.py new file mode 100644 index 00000000..b60b3b49 --- /dev/null +++ b/pandora/text/migrations/0001_initial.py @@ -0,0 +1,68 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import ox.django.fields +import text.models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='Position', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('section', models.CharField(max_length=255)), + ('position', models.IntegerField(default=0)), + ], + ), + migrations.CreateModel( + name='Text', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('name', models.CharField(max_length=255)), + ('status', models.CharField(default=b'private', max_length=20)), + ('type', models.CharField(default=b'html', max_length=255)), + ('description', models.TextField(default=b'')), + ('rightslevel', models.IntegerField(db_index=True, default=0)), + ('icon', models.ImageField(blank=True, default=None, upload_to=text.models.get_icon_path)), + ('text', models.TextField(default=b'')), + ('embeds', ox.django.fields.TupleField(default=[])), + ('poster_frames', ox.django.fields.TupleField(default=[], editable=False)), + ('uploading', models.BooleanField(default=False)), + ('file', models.FileField(blank=True, default=None, null=True, upload_to=text.models.get_path)), + ('subscribed_users', models.ManyToManyField(related_name='subscribed_texts', to=settings.AUTH_USER_MODEL)), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='texts', to=settings.AUTH_USER_MODEL)), + ], + ), + migrations.AddField( + model_name='position', + name='text', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='position', to='text.Text'), + ), + migrations.AddField( + model_name='position', + name='user', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='text_position', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterUniqueTogether( + name='text', + unique_together=set([('user', 'name')]), + ), + migrations.AlterUniqueTogether( + name='position', + unique_together=set([('user', 'text', 'section')]), + ), + ] diff --git a/pandora/title/migrations/0001_initial.py b/pandora/title/migrations/0001_initial.py new file mode 100644 index 00000000..90df438d --- /dev/null +++ b/pandora/title/migrations/0001_initial.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Title', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=1000, unique=True)), + ('sorttitle', models.CharField(max_length=1000)), + ('sortsorttitle', models.CharField(max_length=1000)), + ('edited', models.BooleanField(default=False)), + ('imdbId', models.CharField(blank=True, max_length=7)), + ], + ), + ] diff --git a/pandora/tv/migrations/0001_initial.py b/pandora/tv/migrations/0001_initial.py new file mode 100644 index 00000000..bdf7ba6e --- /dev/null +++ b/pandora/tv/migrations/0001_initial.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('itemlist', '0001_initial'), + ('item', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='Channel', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('run', models.IntegerField(default=0)), + ('list', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='channel', to='itemlist.List', unique=True)), + ], + ), + migrations.CreateModel( + name='Program', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), + ('run', models.IntegerField(default=0)), + ('start', models.DateTimeField()), + ('end', models.DateTimeField()), + ('channel', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='program', to='tv.Channel')), + ('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='program', to='item.Item')), + ], + ), + ] diff --git a/pandora/tv/migrations/0002_auto_20160219_1734.py b/pandora/tv/migrations/0002_auto_20160219_1734.py new file mode 100644 index 00000000..d8fdf59c --- /dev/null +++ b/pandora/tv/migrations/0002_auto_20160219_1734.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 17:34 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('tv', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='channel', + name='list', + field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='channel', to='itemlist.List'), + ), + ] diff --git a/pandora/urlalias/migrations/0001_initial.py b/pandora/urlalias/migrations/0001_initial.py new file mode 100644 index 00000000..27c38c4a --- /dev/null +++ b/pandora/urlalias/migrations/0001_initial.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Alias', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('url', models.CharField(max_length=255, unique=True)), + ('target', models.CharField(max_length=255)), + ], + ), + migrations.CreateModel( + name='IDAlias', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('old', models.CharField(max_length=255, unique=True)), + ('new', models.CharField(max_length=255)), + ], + ), + migrations.CreateModel( + name='LayerAlias', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('old', models.CharField(max_length=255, unique=True)), + ('new', models.CharField(max_length=255)), + ], + ), + migrations.CreateModel( + name='ListAlias', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('old', models.CharField(max_length=255, unique=True)), + ('new', models.CharField(max_length=255)), + ], + ), + ] diff --git a/pandora/user/migrations/0001_initial.py b/pandora/user/migrations/0001_initial.py new file mode 100644 index 00000000..7a06a917 --- /dev/null +++ b/pandora/user/migrations/0001_initial.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 15:37 +from __future__ import unicode_literals + +import datetime +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import ox.django.fields + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='SessionData', + fields=[ + ('session_key', models.CharField(max_length=40, primary_key=True, serialize=False)), + ('firstseen', models.DateTimeField(auto_now_add=True, db_index=True)), + ('lastseen', models.DateTimeField(db_index=True, default=datetime.datetime.now)), + ('username', models.CharField(db_index=True, max_length=255, null=True)), + ('level', models.IntegerField(db_index=True, default=0)), + ('timesseen', models.IntegerField(default=0)), + ('ip', models.CharField(max_length=255, null=True)), + ('useragent', models.CharField(max_length=4096, null=True)), + ('windowsize', models.CharField(max_length=255, null=True)), + ('screensize', models.CharField(max_length=255, null=True)), + ('info', ox.django.fields.DictField(default={})), + ('location', models.CharField(max_length=255, null=True)), + ('location_sort', models.CharField(max_length=255, null=True)), + ('system', models.CharField(max_length=255, null=True)), + ('browser', models.CharField(max_length=255, null=True)), + ('numberoflists', models.IntegerField(default=0, null=True)), + ('groupssort', models.CharField(blank=True, default=None, max_length=255, null=True)), + ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='data', to=settings.AUTH_USER_MODEL, unique=True)), + ], + ), + migrations.CreateModel( + name='UserProfile', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('reset_code', models.CharField(blank=True, max_length=255, null=True, unique=True)), + ('level', models.IntegerField(default=1)), + ('files_updated', models.DateTimeField(default=datetime.datetime.now)), + ('newsletter', models.BooleanField(default=True)), + ('ui', ox.django.fields.DictField(default={})), + ('preferences', ox.django.fields.DictField(default={})), + ('notes', models.TextField(default=b'')), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL, unique=True)), + ], + ), + ] diff --git a/pandora/user/migrations/0002_auto_20160219_1734.py b/pandora/user/migrations/0002_auto_20160219_1734.py new file mode 100644 index 00000000..a7d5084e --- /dev/null +++ b/pandora/user/migrations/0002_auto_20160219_1734.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-02-19 17:34 +from __future__ import unicode_literals + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('user', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='sessiondata', + name='user', + field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='data', to=settings.AUTH_USER_MODEL), + ), + migrations.AlterField( + model_name='userprofile', + name='user', + field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL), + ), + ]