forked from 0x2620/pandora
db migration
This commit is contained in:
parent
976860ec30
commit
4219246909
32 changed files with 1513 additions and 1 deletions
32
pandora/annotation/migrations/0001_initial.py
Normal file
32
pandora/annotation/migrations/0001_initial.py
Normal file
|
@ -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)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
24
pandora/annotation/migrations/0002_annotation_clip.py
Normal file
24
pandora/annotation/migrations/0002_annotation_clip.py
Normal file
|
@ -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'),
|
||||||
|
),
|
||||||
|
]
|
31
pandora/annotation/migrations/0003_auto_20160219_1537.py
Normal file
31
pandora/annotation/migrations/0003_auto_20160219_1537.py
Normal file
|
@ -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),
|
||||||
|
),
|
||||||
|
]
|
36
pandora/app/migrations/0001_initial.py
Normal file
36
pandora/app/migrations/0001_initial.py
Normal file
|
@ -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)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
125
pandora/archive/migrations/0001_initial.py
Normal file
125
pandora/archive/migrations/0001_initial.py
Normal file
|
@ -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'),
|
||||||
|
),
|
||||||
|
]
|
40
pandora/archive/migrations/0002_auto_20160219_1537.py
Normal file
40
pandora/archive/migrations/0002_auto_20160219_1537.py
Normal file
|
@ -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')]),
|
||||||
|
),
|
||||||
|
]
|
40
pandora/changelog/migrations/0001_initial.py
Normal file
40
pandora/changelog/migrations/0001_initial.py
Normal file
|
@ -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)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
50
pandora/clip/migrations/0001_initial.py
Normal file
50
pandora/clip/migrations/0001_initial.py
Normal file
|
@ -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)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
33
pandora/clip/migrations/0002_auto_20160219_1537.py
Normal file
33
pandora/clip/migrations/0002_auto_20160219_1537.py
Normal file
|
@ -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')]),
|
||||||
|
),
|
||||||
|
]
|
53
pandora/document/migrations/0001_initial.py
Normal file
53
pandora/document/migrations/0001_initial.py
Normal file
|
@ -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')),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
44
pandora/document/migrations/0002_auto_20160219_1537.py
Normal file
44
pandora/document/migrations/0002_auto_20160219_1537.py
Normal file
|
@ -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')]),
|
||||||
|
),
|
||||||
|
]
|
73
pandora/edit/migrations/0001_initial.py
Normal file
73
pandora/edit/migrations/0001_initial.py
Normal file
|
@ -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'),
|
||||||
|
),
|
||||||
|
]
|
32
pandora/edit/migrations/0002_auto_20160219_1537.py
Normal file
32
pandora/edit/migrations/0002_auto_20160219_1537.py
Normal file
|
@ -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')]),
|
||||||
|
),
|
||||||
|
]
|
74
pandora/entity/migrations/0001_initial.py
Normal file
74
pandora/entity/migrations/0001_initial.py
Normal file
|
@ -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')]),
|
||||||
|
),
|
||||||
|
]
|
41
pandora/event/migrations/0001_initial.py
Normal file
41
pandora/event/migrations/0001_initial.py
Normal file
|
@ -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')),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
31
pandora/event/migrations/0002_auto_20160219_1537.py
Normal file
31
pandora/event/migrations/0002_auto_20160219_1537.py
Normal file
|
@ -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),
|
||||||
|
),
|
||||||
|
]
|
180
pandora/item/migrations/0001_initial.py
Normal file
180
pandora/item/migrations/0001_initial.py
Normal file
|
@ -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')]),
|
||||||
|
),
|
||||||
|
]
|
21
pandora/item/migrations/0002_auto_20160219_1734.py
Normal file
21
pandora/item/migrations/0002_auto_20160219_1734.py
Normal file
|
@ -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'),
|
||||||
|
),
|
||||||
|
]
|
84
pandora/itemlist/migrations/0001_initial.py
Normal file
84
pandora/itemlist/migrations/0001_initial.py
Normal file
|
@ -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')]),
|
||||||
|
),
|
||||||
|
]
|
31
pandora/log/migrations/0001_initial.py
Normal file
31
pandora/log/migrations/0001_initial.py
Normal file
|
@ -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)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
27
pandora/news/migrations/0001_initial.py
Normal file
27
pandora/news/migrations/0001_initial.py
Normal file
|
@ -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()),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
31
pandora/person/migrations/0001_initial.py
Normal file
31
pandora/person/migrations/0001_initial.py
Normal file
|
@ -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)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
54
pandora/place/migrations/0001_initial.py
Normal file
54
pandora/place/migrations/0001_initial.py
Normal file
|
@ -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',),
|
||||||
|
},
|
||||||
|
),
|
||||||
|
]
|
34
pandora/sequence/migrations/0001_initial.py
Normal file
34
pandora/sequence/migrations/0001_initial.py
Normal file
|
@ -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')]),
|
||||||
|
),
|
||||||
|
]
|
|
@ -115,7 +115,7 @@ INSTALLED_APPS = (
|
||||||
# 'django.contrib.admindocs',
|
# 'django.contrib.admindocs',
|
||||||
'django.contrib.humanize',
|
'django.contrib.humanize',
|
||||||
|
|
||||||
#'django_extensions',
|
'django_extensions',
|
||||||
'djcelery',
|
'djcelery',
|
||||||
'app',
|
'app',
|
||||||
'log',
|
'log',
|
||||||
|
|
68
pandora/text/migrations/0001_initial.py
Normal file
68
pandora/text/migrations/0001_initial.py
Normal file
|
@ -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')]),
|
||||||
|
),
|
||||||
|
]
|
27
pandora/title/migrations/0001_initial.py
Normal file
27
pandora/title/migrations/0001_initial.py
Normal file
|
@ -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)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
42
pandora/tv/migrations/0001_initial.py
Normal file
42
pandora/tv/migrations/0001_initial.py
Normal file
|
@ -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')),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
21
pandora/tv/migrations/0002_auto_20160219_1734.py
Normal file
21
pandora/tv/migrations/0002_auto_20160219_1734.py
Normal file
|
@ -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'),
|
||||||
|
),
|
||||||
|
]
|
48
pandora/urlalias/migrations/0001_initial.py
Normal file
48
pandora/urlalias/migrations/0001_initial.py
Normal file
|
@ -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)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
58
pandora/user/migrations/0001_initial.py
Normal file
58
pandora/user/migrations/0001_initial.py
Normal file
|
@ -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)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
27
pandora/user/migrations/0002_auto_20160219_1734.py
Normal file
27
pandora/user/migrations/0002_auto_20160219_1734.py
Normal file
|
@ -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),
|
||||||
|
),
|
||||||
|
]
|
Loading…
Reference in a new issue