From a10fa2542b87eb36acc0efb4f0f01171a5c3db13 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 23 Dec 2010 20:32:47 +0530 Subject: [PATCH] remove db migrations --- pandora/api/migrations/__init__.py | 0 pandora/archive/migrations/0001_initial.py | 240 -------------- pandora/archive/migrations/0002_volume.py | 307 ------------------ pandora/archive/migrations/0003_file_time.py | 170 ---------- pandora/archive/migrations/0004_file_name.py | 173 ---------- .../archive/migrations/0005_oshash_unique.py | 155 --------- .../migrations/0006_addFileContents.py | 176 ---------- pandora/archive/migrations/0007_stream.py | 188 ----------- pandora/archive/migrations/0008_available.py | 148 --------- .../archive/migrations/0009_rename_movie.py | 146 --------- pandora/archive/migrations/__init__.py | 0 pandora/item/migrations/__init__.py | 0 pandora/user/migrations/0001_init.py | 92 ------ pandora/user/migrations/0002_files.py | 74 ----- pandora/user/migrations/__init__.py | 0 15 files changed, 1869 deletions(-) delete mode 100644 pandora/api/migrations/__init__.py delete mode 100644 pandora/archive/migrations/0001_initial.py delete mode 100644 pandora/archive/migrations/0002_volume.py delete mode 100644 pandora/archive/migrations/0003_file_time.py delete mode 100644 pandora/archive/migrations/0004_file_name.py delete mode 100644 pandora/archive/migrations/0005_oshash_unique.py delete mode 100644 pandora/archive/migrations/0006_addFileContents.py delete mode 100644 pandora/archive/migrations/0007_stream.py delete mode 100644 pandora/archive/migrations/0008_available.py delete mode 100644 pandora/archive/migrations/0009_rename_movie.py delete mode 100644 pandora/archive/migrations/__init__.py delete mode 100644 pandora/item/migrations/__init__.py delete mode 100644 pandora/user/migrations/0001_init.py delete mode 100644 pandora/user/migrations/0002_files.py delete mode 100644 pandora/user/migrations/__init__.py diff --git a/pandora/api/migrations/__init__.py b/pandora/api/migrations/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/pandora/archive/migrations/0001_initial.py b/pandora/archive/migrations/0001_initial.py deleted file mode 100644 index 03553167..00000000 --- a/pandora/archive/migrations/0001_initial.py +++ /dev/null @@ -1,240 +0,0 @@ -# -*- coding: utf-8 -*- - -from south.db import db -from django.db import models -from archive.models import * - -class Migration: - - def forwards(self, orm): - - # Adding model 'Volume' - db.create_table('archive_volume', ( - ('id', orm['archive.Volume:id']), - ('start', orm['archive.Volume:start']), - ('end', orm['archive.Volume:end']), - ('name', orm['archive.Volume:name']), - )) - db.send_create_signal('archive', ['Volume']) - - # Adding model 'Frame' - db.create_table('archive_frame', ( - ('id', orm['archive.Frame:id']), - ('created', orm['archive.Frame:created']), - ('modified', orm['archive.Frame:modified']), - ('file', orm['archive.Frame:file']), - ('position', orm['archive.Frame:position']), - ('frame', orm['archive.Frame:frame']), - )) - db.send_create_signal('archive', ['Frame']) - - # Adding model 'Archive' - db.create_table('archive_archive', ( - ('id', orm['archive.Archive:id']), - ('created', orm['archive.Archive:created']), - ('modified', orm['archive.Archive:modified']), - ('published', orm['archive.Archive:published']), - ('name', orm['archive.Archive:name']), - ('user', orm['archive.Archive:user']), - )) - db.send_create_signal('archive', ['Archive']) - - # Adding model 'File' - db.create_table('archive_file', ( - ('id', orm['archive.File:id']), - ('created', orm['archive.File:created']), - ('modified', orm['archive.File:modified']), - ('verified', orm['archive.File:verified']), - ('oshash', orm['archive.File:oshash']), - ('movie', orm['archive.File:movie']), - ('name', orm['archive.File:name']), - ('sort_name', orm['archive.File:sort_name']), - ('part', orm['archive.File:part']), - ('version', orm['archive.File:version']), - ('language', orm['archive.File:language']), - ('season', orm['archive.File:season']), - ('episode', orm['archive.File:episode']), - ('size', orm['archive.File:size']), - ('duration', orm['archive.File:duration']), - ('info', orm['archive.File:info']), - ('video_codec', orm['archive.File:video_codec']), - ('pixel_format', orm['archive.File:pixel_format']), - ('display_aspect_ratio', orm['archive.File:display_aspect_ratio']), - ('width', orm['archive.File:width']), - ('height', orm['archive.File:height']), - ('framerate', orm['archive.File:framerate']), - ('audio_codec', orm['archive.File:audio_codec']), - ('channels', orm['archive.File:channels']), - ('samplerate', orm['archive.File:samplerate']), - ('bits_per_pixel', orm['archive.File:bits_per_pixel']), - ('pixels', orm['archive.File:pixels']), - ('is_audio', orm['archive.File:is_audio']), - ('is_video', orm['archive.File:is_video']), - ('is_extra', orm['archive.File:is_extra']), - ('is_main', orm['archive.File:is_main']), - ('is_subtitle', orm['archive.File:is_subtitle']), - ('is_version', orm['archive.File:is_version']), - )) - db.send_create_signal('archive', ['File']) - - # Adding model 'Instance' - db.create_table('archive_fileinstance', ( - ('id', orm['archive.Instance:id']), - ('created', orm['archive.Instance:created']), - ('modified', orm['archive.Instance:modified']), - ('published', orm['archive.Instance:published']), - ('accessed', orm['archive.Instance:accessed']), - ('path', orm['archive.Instance:path']), - ('folder', orm['archive.Instance:folder']), - ('file', orm['archive.Instance:file']), - ('archive', orm['archive.Instance:archive']), - )) - db.send_create_signal('archive', ['Instance']) - - - - def backwards(self, orm): - - # Deleting model 'Volume' - db.delete_table('archive_volume') - - # Deleting model 'Frame' - db.delete_table('archive_frame') - - # Deleting model 'Archive' - db.delete_table('archive_archive') - - # Deleting model 'File' - db.delete_table('archive_file') - - # Deleting model 'Instance' - db.delete_table('archive_fileinstance') - - - - models = { - 'archive.archive': { - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'published': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'owned_archives'", 'to': "orm['auth.User']"}), - 'users': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.User']", 'symmetrical': 'False'}), - 'volumes': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['archive.Volume']", 'symmetrical': 'False'}) - }, - 'archive.file': { - 'audio_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'bits_per_pixel': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'channels': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'display_aspect_ratio': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'duration': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'episode': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'framerate': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'info': ('fields.DictField', [], {'default': '{}'}), - 'is_audio': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_extra': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_main': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_subtitle': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_version': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_video': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'language': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '8'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'movie': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['backend.Movie']"}), - 'name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'oshash': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'part': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'pixel_format': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pixels': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'samplerate': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'season': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'size': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'sort_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'verified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'video_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'width': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'archive.fileinstance': { - 'accessed': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'archive': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['archive.Archive']"}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'instances'", 'to': "orm['archive.File']"}), - 'folder': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'path': ('django.db.models.fields.CharField', [], {'max_length': '2048'}), - 'published': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - }, - 'archive.frame': { - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'frames'", 'to': "orm['archive.File']"}), - 'frame': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'position': ('django.db.models.fields.FloatField', [], {}) - }, - 'archive.volume': { - 'end': ('django.db.models.fields.CharField', [], {'max_length': '1'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'start': ('django.db.models.fields.CharField', [], {'max_length': '1'}) - }, - 'auth.group': { - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)"}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'backend.movie': { - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'imdb': ('fields.DictField', [], {'default': '{}', 'editable': 'False'}), - 'json': ('fields.DictField', [], {'default': '{}', 'editable': 'False'}), - 'metadata': ('fields.DictField', [], {'default': '{}', 'editable': 'False'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'movieId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'blank': 'True'}), - 'oxdbId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '42', 'blank': 'True'}), - 'poster_height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'poster_width': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'published': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'scene_height': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), - 'stream_high': ('django.db.models.fields.files.FileField', [], {'default': 'None', 'max_length': '100', 'blank': 'True'}), - 'stream_low': ('django.db.models.fields.files.FileField', [], {'default': 'None', 'max_length': '100', 'blank': 'True'}), - 'stream_mid': ('django.db.models.fields.files.FileField', [], {'default': 'None', 'max_length': '100', 'blank': 'True'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - } - } - - complete_apps = ['archive'] diff --git a/pandora/archive/migrations/0002_volume.py b/pandora/archive/migrations/0002_volume.py deleted file mode 100644 index dc6d1ef4..00000000 --- a/pandora/archive/migrations/0002_volume.py +++ /dev/null @@ -1,307 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Deleting model 'archive' - db.delete_table('archive_archive') - - # Removing M2M table for field users on 'archive' - db.delete_table('archive_archive_users') - - # Removing M2M table for field volumes on 'archive' - db.delete_table('archive_archive_volumes') - - # Adding model 'Stream' - db.create_table('archive_stream', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('file', self.gf('django.db.models.fields.related.ForeignKey')(related_name='streams', to=orm['archive.File'])), - ('profile', self.gf('django.db.models.fields.CharField')(default='96p.webm', max_length=255)), - ('video', self.gf('django.db.models.fields.files.FileField')(default=None, max_length=100, blank=True)), - ('source', self.gf('django.db.models.fields.related.ForeignKey')(default=None, related_name='derivatives', blank=True, to=orm['archive.Stream'])), - ('available', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - )) - db.send_create_signal('archive', ['Stream']) - - # Deleting field 'volume.start' - db.delete_column('archive_volume', 'start') - - # Deleting field 'volume.end' - db.delete_column('archive_volume', 'end') - - # Adding field 'Volume.created' - db.add_column('archive_volume', 'created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, default=datetime.datetime(2010, 8, 9, 14, 19, 30, 463275), blank=True), keep_default=False) - - # Adding field 'Volume.modified' - db.add_column('archive_volume', 'modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, default=datetime.datetime(2010, 8, 9, 14, 19, 42, 576261), blank=True), keep_default=False) - - # Adding field 'Volume.user' - db.add_column('archive_volume', 'user', self.gf('django.db.models.fields.related.ForeignKey')(default=None, related_name='volumes', to=orm['auth.User']), keep_default=False) - - # Changing field 'Volume.name' - db.alter_column('archive_volume', 'name', self.gf('django.db.models.fields.CharField')(max_length=1024)) - - # Adding unique constraint on 'Volume', fields ['user', 'name'] - db.create_unique('archive_volume', ['user_id', 'name']) - - # Adding unique constraint on 'Frame', fields ['position', 'file'] - db.create_unique('archive_frame', ['position', 'file_id']) - - # Adding field 'File.available' - db.add_column('archive_file', 'available', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - # Changing field 'File.info' - db.alter_column('archive_file', 'info', self.gf('ox.django.fields.DictField')()) - - # Deleting field 'fileinstance.published' - db.delete_column('archive_fileinstance', 'published') - - # Deleting field 'fileinstance.accessed' - db.delete_column('archive_fileinstance', 'accessed') - - # Deleting field 'fileinstance.archive' - db.delete_column('archive_fileinstance', 'archive_id') - - # Adding field 'Instance.ctime' - db.add_column('archive_fileinstance', 'ctime', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now), keep_default=False) - - # Adding field 'Instance.mtime' - db.add_column('archive_fileinstance', 'mtime', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now), keep_default=False) - - # Adding field 'Instance.atime' - db.add_column('archive_fileinstance', 'atime', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now), keep_default=False) - - # Adding field 'Instance.volume' - db.add_column('archive_fileinstance', 'volume', self.gf('django.db.models.fields.related.ForeignKey')(default=None, related_name='files', to=orm['archive.Volume']), keep_default=False) - - # Adding unique constraint on 'Instance', fields ['volume', 'path', 'folder'] - db.create_unique('archive_fileinstance', ['volume_id', 'path', 'folder']) - - - def backwards(self, orm): - - # Adding model 'archive' - db.create_table('archive_archive', ( - ('name', self.gf('django.db.models.fields.CharField')(max_length=255)), - ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='owned_archives', to=orm['auth.User'])), - ('published', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)), - )) - db.send_create_signal('archive', ['archive']) - - # Adding M2M table for field users on 'archive' - db.create_table('archive_archive_users', ( - ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), - ('archive', models.ForeignKey(orm['archive.archive'], null=False)), - ('user', models.ForeignKey(orm['auth.user'], null=False)) - )) - db.create_unique('archive_archive_users', ['archive_id', 'user_id']) - - # Adding M2M table for field volumes on 'archive' - db.create_table('archive_archive_volumes', ( - ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), - ('archive', models.ForeignKey(orm['archive.archive'], null=False)), - ('volume', models.ForeignKey(orm['archive.volume'], null=False)) - )) - db.create_unique('archive_archive_volumes', ['archive_id', 'volume_id']) - - # Deleting model 'Stream' - db.delete_table('archive_stream') - - # Adding field 'volume.start' - db.add_column('archive_volume', 'start', self.gf('django.db.models.fields.CharField')(default='', max_length=1), keep_default=False) - - # Adding field 'volume.end' - db.add_column('archive_volume', 'end', self.gf('django.db.models.fields.CharField')(default='', max_length=1), keep_default=False) - - # Deleting field 'Volume.created' - db.delete_column('archive_volume', 'created') - - # Deleting field 'Volume.modified' - db.delete_column('archive_volume', 'modified') - - # Deleting field 'Volume.user' - db.delete_column('archive_volume', 'user_id') - - # Changing field 'Volume.name' - db.alter_column('archive_volume', 'name', self.gf('django.db.models.fields.CharField')(max_length=255)) - - # Removing unique constraint on 'Volume', fields ['user', 'name'] - db.delete_unique('archive_volume', ['user_id', 'name']) - - # Removing unique constraint on 'Frame', fields ['position', 'file'] - db.delete_unique('archive_frame', ['position', 'file_id']) - - # Deleting field 'File.available' - db.delete_column('archive_file', 'available') - - # Changing field 'File.info' - db.alter_column('archive_file', 'info', self.gf('fields.DictField')()) - - # Adding field 'fileinstance.published' - db.add_column('archive_fileinstance', 'published', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now), keep_default=False) - - # Adding field 'fileinstance.accessed' - db.add_column('archive_fileinstance', 'accessed', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now), keep_default=False) - - # Adding field 'fileinstance.archive' - db.add_column('archive_fileinstance', 'archive', self.gf('django.db.models.fields.related.ForeignKey')(default=None, related_name='files', to=orm['archive.Archive']), keep_default=False) - - # Deleting field 'Instance.ctime' - db.delete_column('archive_fileinstance', 'ctime') - - # Deleting field 'Instance.mtime' - db.delete_column('archive_fileinstance', 'mtime') - - # Deleting field 'Instance.atime' - db.delete_column('archive_fileinstance', 'atime') - - # Deleting field 'Instance.volume' - db.delete_column('archive_fileinstance', 'volume_id') - - # Removing unique constraint on 'Instance', fields ['volume', 'path', 'folder'] - db.delete_unique('archive_fileinstance', ['volume_id', 'path', 'folder']) - - - models = { - 'archive.file': { - 'Meta': {'object_name': 'File'}, - 'audio_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'bits_per_pixel': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'channels': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'display_aspect_ratio': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'duration': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'episode': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'framerate': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'info': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'is_audio': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_extra': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_main': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_subtitle': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_version': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_video': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'language': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '8'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'movie': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['backend.Movie']"}), - 'name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'oshash': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'part': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'pixel_format': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pixels': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'samplerate': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'season': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'size': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'sort_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'verified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'video_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'width': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'archive.fileinstance': { - 'Meta': {'unique_together': "(('path', 'folder', 'volume'),)", 'object_name': 'Instance'}, - 'atime': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'ctime': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'instances'", 'to': "orm['archive.File']"}), - 'folder': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'mtime': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'path': ('django.db.models.fields.CharField', [], {'max_length': '2048'}), - 'volume': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['archive.Volume']"}) - }, - 'archive.frame': { - 'Meta': {'unique_together': "(('file', 'position'),)", 'object_name': 'Frame'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'frames'", 'to': "orm['archive.File']"}), - 'frame': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'position': ('django.db.models.fields.FloatField', [], {}) - }, - 'archive.stream': { - 'Meta': {'unique_together': "(('file', 'profile'),)", 'object_name': 'Stream'}, - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'streams'", 'to': "orm['archive.File']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'profile': ('django.db.models.fields.CharField', [], {'default': "'96p.webm'", 'max_length': '255'}), - 'source': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'derivatives'", 'blank': 'True', 'to': "orm['archive.Stream']"}), - 'video': ('django.db.models.fields.files.FileField', [], {'default': 'None', 'max_length': '100', 'blank': 'True'}) - }, - 'archive.volume': { - 'Meta': {'unique_together': "(('user', 'name'),)", 'object_name': 'Volume'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '1024'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'volumes'", 'to': "orm['auth.User']"}) - }, - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'backend.movie': { - 'Meta': {'object_name': 'Movie'}, - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'imdb': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'json': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'metadata': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'movieId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'blank': 'True'}), - 'oxdbId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '42', 'blank': 'True'}), - 'poster': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'blank': 'True'}), - 'poster_frame': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'poster_height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'poster_width': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'posters_url': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'published': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'stream_aspect': ('django.db.models.fields.FloatField', [], {'default': '1.3333333333333333'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - } - } - - complete_apps = ['archive'] diff --git a/pandora/archive/migrations/0003_file_time.py b/pandora/archive/migrations/0003_file_time.py deleted file mode 100644 index a76174c6..00000000 --- a/pandora/archive/migrations/0003_file_time.py +++ /dev/null @@ -1,170 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Changing field 'Instance.ctime' - db.delete_column('archive_fileinstance', 'ctime') - db.add_column('archive_fileinstance', 'ctime', self.gf('django.db.models.fields.IntegerField')()) - - # Changing field 'Instance.mtime' - db.delete_column('archive_fileinstance', 'mtime') - db.add_column('archive_fileinstance', 'mtime', self.gf('django.db.models.fields.IntegerField')()) - - # Changing field 'Instance.atime' - db.delete_column('archive_fileinstance', 'atime') - db.add_column('archive_fileinstance', 'atime', self.gf('django.db.models.fields.IntegerField')()) - - - def backwards(self, orm): - - # Changing field 'Instance.ctime' - db.alter_column('archive_fileinstance', 'ctime', self.gf('django.db.models.fields.DateTimeField')()) - - # Changing field 'Instance.mtime' - db.alter_column('archive_fileinstance', 'mtime', self.gf('django.db.models.fields.DateTimeField')()) - - # Changing field 'Instance.atime' - db.alter_column('archive_fileinstance', 'atime', self.gf('django.db.models.fields.DateTimeField')()) - - - models = { - 'archive.file': { - 'Meta': {'object_name': 'File'}, - 'audio_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'bits_per_pixel': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'channels': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'display_aspect_ratio': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'duration': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'episode': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'framerate': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'info': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'is_audio': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_extra': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_main': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_subtitle': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_version': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_video': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'language': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '8'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'movie': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['backend.Movie']"}), - 'name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'oshash': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'part': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'pixel_format': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pixels': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'samplerate': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'season': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'size': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'sort_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'verified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'video_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'width': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'archive.fileinstance': { - 'Meta': {'unique_together': "(('path', 'folder', 'volume'),)", 'object_name': 'Instance'}, - 'atime': ('django.db.models.fields.IntegerField', [], {'default': '1281357186.5094559'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'ctime': ('django.db.models.fields.IntegerField', [], {'default': '1281357186.5095601'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'instances'", 'to': "orm['archive.File']"}), - 'folder': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'mtime': ('django.db.models.fields.IntegerField', [], {'default': '1281357186.5096569'}), - 'path': ('django.db.models.fields.CharField', [], {'max_length': '2048'}), - 'volume': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['archive.Volume']"}) - }, - 'archive.frame': { - 'Meta': {'unique_together': "(('file', 'position'),)", 'object_name': 'Frame'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'frames'", 'to': "orm['archive.File']"}), - 'frame': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'position': ('django.db.models.fields.FloatField', [], {}) - }, - 'archive.stream': { - 'Meta': {'unique_together': "(('file', 'profile'),)", 'object_name': 'Stream'}, - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'streams'", 'to': "orm['archive.File']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'profile': ('django.db.models.fields.CharField', [], {'default': "'96p.webm'", 'max_length': '255'}), - 'source': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'derivatives'", 'blank': 'True', 'to': "orm['archive.Stream']"}), - 'video': ('django.db.models.fields.files.FileField', [], {'default': 'None', 'max_length': '100', 'blank': 'True'}) - }, - 'archive.volume': { - 'Meta': {'unique_together': "(('user', 'name'),)", 'object_name': 'Volume'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '1024'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'volumes'", 'to': "orm['auth.User']"}) - }, - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'backend.movie': { - 'Meta': {'object_name': 'Movie'}, - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'imdb': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'json': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'metadata': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'movieId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'blank': 'True'}), - 'oxdbId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '42', 'blank': 'True'}), - 'poster': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'blank': 'True'}), - 'poster_frame': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'poster_height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'poster_width': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'posters_url': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'published': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'stream_aspect': ('django.db.models.fields.FloatField', [], {'default': '1.3333333333333333'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - } - } - - complete_apps = ['archive'] diff --git a/pandora/archive/migrations/0004_file_name.py b/pandora/archive/migrations/0004_file_name.py deleted file mode 100644 index c1e5db26..00000000 --- a/pandora/archive/migrations/0004_file_name.py +++ /dev/null @@ -1,173 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Deleting field 'Instance.path' - db.delete_column('archive_fileinstance', 'path') - - # Adding field 'Instance.name' - db.add_column('archive_fileinstance', 'name', self.gf('django.db.models.fields.CharField')(default='', max_length=2048), keep_default=False) - - # Removing unique constraint on 'Instance', fields ['volume', 'path', 'folder'] - #db.delete_unique('archive_fileinstance', ['volume_id', 'path', 'folder']) - - # Adding unique constraint on 'Instance', fields ['volume', 'folder', 'name'] - db.create_unique('archive_fileinstance', ['volume_id', 'folder', 'name']) - - - def backwards(self, orm): - - # Adding field 'Instance.path' - db.add_column('archive_fileinstance', 'path', self.gf('django.db.models.fields.CharField')(default='', max_length=2048), keep_default=False) - - # Deleting field 'Instance.name' - db.delete_column('archive_fileinstance', 'name') - - # Adding unique constraint on 'Instance', fields ['volume', 'path', 'folder'] - db.create_unique('archive_fileinstance', ['volume_id', 'path', 'folder']) - - # Removing unique constraint on 'Instance', fields ['volume', 'folder', 'name'] - db.delete_unique('archive_fileinstance', ['volume_id', 'folder', 'name']) - - - models = { - 'archive.file': { - 'Meta': {'object_name': 'File'}, - 'audio_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'bits_per_pixel': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'channels': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'display_aspect_ratio': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'duration': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'episode': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'framerate': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'info': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'is_audio': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_extra': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_main': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_subtitle': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_version': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_video': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'language': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '8'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'movie': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['backend.Movie']"}), - 'name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'oshash': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'part': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'pixel_format': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pixels': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'samplerate': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'season': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'size': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'sort_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'verified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'video_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'width': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'archive.fileinstance': { - 'Meta': {'unique_together': "(('name', 'folder', 'volume'),)", 'object_name': 'Instance'}, - 'atime': ('django.db.models.fields.IntegerField', [], {'default': '1281358260'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'ctime': ('django.db.models.fields.IntegerField', [], {'default': '1281358260'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'instances'", 'to': "orm['archive.File']"}), - 'folder': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'mtime': ('django.db.models.fields.IntegerField', [], {'default': '1281358260'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '2048'}), - 'volume': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['archive.Volume']"}) - }, - 'archive.frame': { - 'Meta': {'unique_together': "(('file', 'position'),)", 'object_name': 'Frame'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'frames'", 'to': "orm['archive.File']"}), - 'frame': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'position': ('django.db.models.fields.FloatField', [], {}) - }, - 'archive.stream': { - 'Meta': {'unique_together': "(('file', 'profile'),)", 'object_name': 'Stream'}, - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'streams'", 'to': "orm['archive.File']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'profile': ('django.db.models.fields.CharField', [], {'default': "'96p.webm'", 'max_length': '255'}), - 'source': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'derivatives'", 'blank': 'True', 'to': "orm['archive.Stream']"}), - 'video': ('django.db.models.fields.files.FileField', [], {'default': 'None', 'max_length': '100', 'blank': 'True'}) - }, - 'archive.volume': { - 'Meta': {'unique_together': "(('user', 'name'),)", 'object_name': 'Volume'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '1024'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'volumes'", 'to': "orm['auth.User']"}) - }, - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'backend.movie': { - 'Meta': {'object_name': 'Movie'}, - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'imdb': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'json': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'metadata': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'movieId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'blank': 'True'}), - 'oxdbId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '42', 'blank': 'True'}), - 'poster': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'blank': 'True'}), - 'poster_frame': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'poster_height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'poster_width': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'posters_url': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'published': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'stream_aspect': ('django.db.models.fields.FloatField', [], {'default': '1.3333333333333333'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - } - } - - complete_apps = ['archive'] diff --git a/pandora/archive/migrations/0005_oshash_unique.py b/pandora/archive/migrations/0005_oshash_unique.py deleted file mode 100644 index fa6a0ce0..00000000 --- a/pandora/archive/migrations/0005_oshash_unique.py +++ /dev/null @@ -1,155 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding unique constraint on 'File', fields ['oshash'] - db.create_unique('archive_file', ['oshash']) - - - def backwards(self, orm): - - # Removing unique constraint on 'File', fields ['oshash'] - db.delete_unique('archive_file', ['oshash']) - - - models = { - 'archive.file': { - 'Meta': {'object_name': 'File'}, - 'audio_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'bits_per_pixel': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'channels': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'display_aspect_ratio': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'duration': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'episode': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'framerate': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'info': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'is_audio': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_extra': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_main': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_subtitle': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_version': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_video': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'language': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '8'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'movie': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['backend.Movie']"}), - 'name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'oshash': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '16'}), - 'part': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'pixel_format': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pixels': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'samplerate': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'season': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'size': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'sort_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'verified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'video_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'width': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'archive.fileinstance': { - 'Meta': {'unique_together': "(('name', 'folder', 'volume'),)", 'object_name': 'Instance'}, - 'atime': ('django.db.models.fields.IntegerField', [], {'default': '1281372184'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'ctime': ('django.db.models.fields.IntegerField', [], {'default': '1281372184'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'instances'", 'to': "orm['archive.File']"}), - 'folder': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'mtime': ('django.db.models.fields.IntegerField', [], {'default': '1281372184'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '2048'}), - 'volume': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['archive.Volume']"}) - }, - 'archive.frame': { - 'Meta': {'unique_together': "(('file', 'position'),)", 'object_name': 'Frame'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'frames'", 'to': "orm['archive.File']"}), - 'frame': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'position': ('django.db.models.fields.FloatField', [], {}) - }, - 'archive.stream': { - 'Meta': {'unique_together': "(('file', 'profile'),)", 'object_name': 'Stream'}, - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'streams'", 'to': "orm['archive.File']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'profile': ('django.db.models.fields.CharField', [], {'default': "'96p.webm'", 'max_length': '255'}), - 'source': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'derivatives'", 'blank': 'True', 'to': "orm['archive.Stream']"}), - 'video': ('django.db.models.fields.files.FileField', [], {'default': 'None', 'max_length': '100', 'blank': 'True'}) - }, - 'archive.volume': { - 'Meta': {'unique_together': "(('user', 'name'),)", 'object_name': 'Volume'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '1024'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'volumes'", 'to': "orm['auth.User']"}) - }, - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'backend.movie': { - 'Meta': {'object_name': 'Movie'}, - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'imdb': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'json': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'metadata': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'movieId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'blank': 'True'}), - 'oxdbId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '42', 'blank': 'True'}), - 'poster': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'blank': 'True'}), - 'poster_frame': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'poster_height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'poster_width': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'posters_url': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'published': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'stream_aspect': ('django.db.models.fields.FloatField', [], {'default': '1.3333333333333333'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - } - } - - complete_apps = ['archive'] diff --git a/pandora/archive/migrations/0006_addFileContents.py b/pandora/archive/migrations/0006_addFileContents.py deleted file mode 100644 index b1be59e1..00000000 --- a/pandora/archive/migrations/0006_addFileContents.py +++ /dev/null @@ -1,176 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding model 'FileContents' - db.create_table('archive_filecontents', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)), - ('modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)), - ('file', self.gf('django.db.models.fields.related.ForeignKey')(related_name='contents', to=orm['archive.File'])), - ('data', self.gf('django.db.models.fields.TextField')(default=u'')), - )) - db.send_create_signal('archive', ['FileContents']) - - # Changing field 'Stream.source' - db.alter_column('archive_stream', 'source_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['archive.Stream'])) - - - def backwards(self, orm): - - # Deleting model 'FileContents' - db.delete_table('archive_filecontents') - - # Changing field 'Stream.source' - db.alter_column('archive_stream', 'source_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['archive.Stream'], blank=True)) - - - models = { - 'archive.file': { - 'Meta': {'object_name': 'File'}, - 'audio_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'bits_per_pixel': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'channels': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'display_aspect_ratio': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'duration': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'episode': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'framerate': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'info': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'is_audio': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_extra': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_main': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_subtitle': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_version': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_video': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'language': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '8'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'movie': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['backend.Movie']"}), - 'name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'oshash': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '16'}), - 'part': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'pixel_format': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pixels': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'samplerate': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'season': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'size': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'sort_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'verified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'video_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'width': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'archive.filecontents': { - 'Meta': {'object_name': 'FileContents'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'data': ('django.db.models.fields.TextField', [], {'default': "u''"}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'contents'", 'to': "orm['archive.File']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) - }, - 'archive.fileinstance': { - 'Meta': {'unique_together': "(('name', 'folder', 'volume'),)", 'object_name': 'Instance'}, - 'atime': ('django.db.models.fields.IntegerField', [], {'default': '1282476196'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'ctime': ('django.db.models.fields.IntegerField', [], {'default': '1282476196'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'instances'", 'to': "orm['archive.File']"}), - 'folder': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'mtime': ('django.db.models.fields.IntegerField', [], {'default': '1282476196'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '2048'}), - 'volume': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['archive.Volume']"}) - }, - 'archive.frame': { - 'Meta': {'unique_together': "(('file', 'position'),)", 'object_name': 'Frame'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'frames'", 'to': "orm['archive.File']"}), - 'frame': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'position': ('django.db.models.fields.FloatField', [], {}) - }, - 'archive.stream': { - 'Meta': {'unique_together': "(('file', 'profile'),)", 'object_name': 'Stream'}, - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'streams'", 'to': "orm['archive.File']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'profile': ('django.db.models.fields.CharField', [], {'default': "'96p.webm'", 'max_length': '255'}), - 'source': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'derivatives'", 'null': 'True', 'to': "orm['archive.Stream']"}), - 'video': ('django.db.models.fields.files.FileField', [], {'default': 'None', 'max_length': '100', 'blank': 'True'}) - }, - 'archive.volume': { - 'Meta': {'unique_together': "(('user', 'name'),)", 'object_name': 'Volume'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '1024'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'volumes'", 'to': "orm['auth.User']"}) - }, - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'backend.movie': { - 'Meta': {'object_name': 'Movie'}, - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'imdb': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'json': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'metadata': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'movieId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'blank': 'True'}), - 'oxdbId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '42', 'blank': 'True'}), - 'poster': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'blank': 'True'}), - 'poster_frame': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'poster_height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'poster_url': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'poster_width': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'published': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'stream_aspect': ('django.db.models.fields.FloatField', [], {'default': '1.3333333333333333'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - } - } - - complete_apps = ['archive'] diff --git a/pandora/archive/migrations/0007_stream.py b/pandora/archive/migrations/0007_stream.py deleted file mode 100644 index 882c4e3f..00000000 --- a/pandora/archive/migrations/0007_stream.py +++ /dev/null @@ -1,188 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Deleting model 'Stream' - db.delete_table('archive_stream') - - # Deleting model 'FileContents' - db.delete_table('archive_filecontents') - - # Adding field 'File.video_available' - db.add_column('archive_file', 'video_available', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - # Adding field 'File.video' - db.add_column('archive_file', 'video', self.gf('django.db.models.fields.files.FileField')(max_length=100, null=True, blank=True), keep_default=False) - - # Adding field 'File.data' - db.add_column('archive_file', 'data', self.gf('django.db.models.fields.files.FileField')(max_length=100, null=True, blank=True), keep_default=False) - - - def backwards(self, orm): - - # Adding model 'Stream' - db.create_table('archive_stream', ( - ('available', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('profile', self.gf('django.db.models.fields.CharField')(default='96p.webm', max_length=255)), - ('source', self.gf('django.db.models.fields.related.ForeignKey')(default=None, related_name='derivatives', null=True, to=orm['archive.Stream'])), - ('video', self.gf('django.db.models.fields.files.FileField')(default=None, max_length=100, blank=True)), - ('file', self.gf('django.db.models.fields.related.ForeignKey')(related_name='streams', to=orm['archive.File'])), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - )) - db.send_create_signal('archive', ['Stream']) - - # Adding model 'FileContents' - db.create_table('archive_filecontents', ( - ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)), - ('modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)), - ('file', self.gf('django.db.models.fields.related.ForeignKey')(related_name='contents', to=orm['archive.File'])), - ('data', self.gf('django.db.models.fields.TextField')(default=u'')), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - )) - db.send_create_signal('archive', ['FileContents']) - - # Deleting field 'File.video_available' - db.delete_column('archive_file', 'video_available') - - # Deleting field 'File.video' - db.delete_column('archive_file', 'video') - - # Deleting field 'File.data' - db.delete_column('archive_file', 'data') - - - models = { - 'archive.file': { - 'Meta': {'object_name': 'File'}, - 'audio_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'bits_per_pixel': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'channels': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'data': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), - 'display_aspect_ratio': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'duration': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'episode': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'framerate': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'info': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'is_audio': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_extra': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_main': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_subtitle': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_version': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_video': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'language': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '8'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'movie': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['backend.Movie']"}), - 'name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'oshash': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '16'}), - 'part': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'pixel_format': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pixels': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'samplerate': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'season': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'size': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'sort_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'verified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'video': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), - 'video_available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'video_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'width': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'archive.fileinstance': { - 'Meta': {'unique_together': "(('name', 'folder', 'volume'),)", 'object_name': 'Instance'}, - 'atime': ('django.db.models.fields.IntegerField', [], {'default': '1282732467'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'ctime': ('django.db.models.fields.IntegerField', [], {'default': '1282732467'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'instances'", 'to': "orm['archive.File']"}), - 'folder': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'mtime': ('django.db.models.fields.IntegerField', [], {'default': '1282732467'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '2048'}), - 'volume': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['archive.Volume']"}) - }, - 'archive.frame': { - 'Meta': {'unique_together': "(('file', 'position'),)", 'object_name': 'Frame'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'frames'", 'to': "orm['archive.File']"}), - 'frame': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'position': ('django.db.models.fields.FloatField', [], {}) - }, - 'archive.volume': { - 'Meta': {'unique_together': "(('user', 'name'),)", 'object_name': 'Volume'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '1024'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'volumes'", 'to': "orm['auth.User']"}) - }, - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'backend.movie': { - 'Meta': {'object_name': 'Movie'}, - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'imdb': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'json': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'metadata': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'movieId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'blank': 'True'}), - 'oxdbId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '42', 'blank': 'True'}), - 'poster': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'blank': 'True'}), - 'poster_frame': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'poster_height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'poster_url': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'poster_width': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'published': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'stream_aspect': ('django.db.models.fields.FloatField', [], {'default': '1.3333333333333333'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - } - } - - complete_apps = ['archive'] diff --git a/pandora/archive/migrations/0008_available.py b/pandora/archive/migrations/0008_available.py deleted file mode 100644 index 4e56f392..00000000 --- a/pandora/archive/migrations/0008_available.py +++ /dev/null @@ -1,148 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Deleting field 'File.video_available' - db.delete_column('archive_file', 'video_available') - - - def backwards(self, orm): - - # Adding field 'File.video_available' - db.add_column('archive_file', 'video_available', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - - models = { - 'archive.file': { - 'Meta': {'object_name': 'File'}, - 'audio_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'bits_per_pixel': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'channels': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'data': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), - 'display_aspect_ratio': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'duration': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'episode': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'framerate': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'info': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'is_audio': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_extra': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_main': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_subtitle': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_version': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_video': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'language': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '8'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'movie': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['backend.Movie']"}), - 'name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'oshash': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '16'}), - 'part': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'pixel_format': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pixels': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'samplerate': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'season': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'size': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'sort_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'verified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'video': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), - 'video_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'width': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'archive.fileinstance': { - 'Meta': {'unique_together': "(('name', 'folder', 'volume'),)", 'object_name': 'Instance'}, - 'atime': ('django.db.models.fields.IntegerField', [], {'default': '1283966008'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'ctime': ('django.db.models.fields.IntegerField', [], {'default': '1283966008'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'instances'", 'to': "orm['archive.File']"}), - 'folder': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'mtime': ('django.db.models.fields.IntegerField', [], {'default': '1283966008'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '2048'}), - 'volume': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['archive.Volume']"}) - }, - 'archive.frame': { - 'Meta': {'unique_together': "(('file', 'position'),)", 'object_name': 'Frame'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'frames'", 'to': "orm['archive.File']"}), - 'frame': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'position': ('django.db.models.fields.FloatField', [], {}) - }, - 'archive.volume': { - 'Meta': {'unique_together': "(('user', 'name'),)", 'object_name': 'Volume'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '1024'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'volumes'", 'to': "orm['auth.User']"}) - }, - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'backend.movie': { - 'Meta': {'object_name': 'Movie'}, - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'imdb': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'json': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'metadata': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'movieId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'blank': 'True'}), - 'oxdbId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '42', 'blank': 'True'}), - 'poster': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'blank': 'True'}), - 'poster_frame': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'poster_height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'poster_url': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'poster_width': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'published': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'stream_aspect': ('django.db.models.fields.FloatField', [], {'default': '1.3333333333333333'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - } - } - - complete_apps = ['archive'] diff --git a/pandora/archive/migrations/0009_rename_movie.py b/pandora/archive/migrations/0009_rename_movie.py deleted file mode 100644 index fd521dfb..00000000 --- a/pandora/archive/migrations/0009_rename_movie.py +++ /dev/null @@ -1,146 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - db.rename_column('archive_file', 'movie_id', 'item_id') - - - def backwards(self, orm): - - db.rename_column('archive_file', 'item_id', 'movie_id') - - - models = { - 'archive.file': { - 'Meta': {'object_name': 'File'}, - 'audio_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'bits_per_pixel': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'channels': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'data': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), - 'display_aspect_ratio': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'duration': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'episode': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'framerate': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'info': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'is_audio': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_extra': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_main': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_subtitle': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_version': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_video': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'item': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['backend.Item']"}), - 'language': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '8'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'oshash': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '16'}), - 'part': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'pixel_format': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'pixels': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'samplerate': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'season': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), - 'size': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}), - 'sort_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '2048'}), - 'verified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'version': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), - 'video': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), - 'video_codec': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'width': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'archive.fileinstance': { - 'Meta': {'unique_together': "(('name', 'folder', 'volume'),)", 'object_name': 'Instance'}, - 'atime': ('django.db.models.fields.IntegerField', [], {'default': '1285254686'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'ctime': ('django.db.models.fields.IntegerField', [], {'default': '1285254686'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'instances'", 'to': "orm['archive.File']"}), - 'folder': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'mtime': ('django.db.models.fields.IntegerField', [], {'default': '1285254686'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '2048'}), - 'volume': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': "orm['archive.Volume']"}) - }, - 'archive.frame': { - 'Meta': {'unique_together': "(('file', 'position'),)", 'object_name': 'Frame'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'file': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'frames'", 'to': "orm['archive.File']"}), - 'frame': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'position': ('django.db.models.fields.FloatField', [], {}) - }, - 'archive.volume': { - 'Meta': {'unique_together': "(('user', 'name'),)", 'object_name': 'Volume'}, - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '1024'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'volumes'", 'to': "orm['auth.User']"}) - }, - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'backend.item': { - 'Meta': {'object_name': 'Item'}, - 'available': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}), - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'imdb': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'itemId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'blank': 'True'}), - 'json': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'metadata': ('ox.django.fields.DictField', [], {'default': '{}'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'oxdbId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '42', 'blank': 'True'}), - 'poster': ('django.db.models.fields.files.ImageField', [], {'default': 'None', 'max_length': '100', 'blank': 'True'}), - 'poster_frame': ('django.db.models.fields.FloatField', [], {'default': '-1'}), - 'poster_height': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'poster_url': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'poster_width': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'published': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'stream_aspect': ('django.db.models.fields.FloatField', [], {'default': '1.3333333333333333'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - } - } - - complete_apps = ['archive'] diff --git a/pandora/archive/migrations/__init__.py b/pandora/archive/migrations/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/pandora/item/migrations/__init__.py b/pandora/item/migrations/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/pandora/user/migrations/0001_init.py b/pandora/user/migrations/0001_init.py deleted file mode 100644 index 97948f9c..00000000 --- a/pandora/user/migrations/0001_init.py +++ /dev/null @@ -1,92 +0,0 @@ -# -*- coding: utf-8 -*- - -from south.db import db -from django.db import models -from user.models import * - -class Migration: - - def forwards(self, orm): - - # Adding model 'Preference' - db.create_table('user_preference', ( - ('id', orm['user.Preference:id']), - ('user', orm['user.Preference:user']), - ('created', orm['user.Preference:created']), - ('modified', orm['user.Preference:modified']), - ('key', orm['user.Preference:key']), - ('value', orm['user.Preference:value']), - )) - db.send_create_signal('user', ['Preference']) - - # Adding model 'UserProfile' - db.create_table('user_userprofile', ( - ('id', orm['user.UserProfile:id']), - ('recover_key', orm['user.UserProfile:recover_key']), - ('user', orm['user.UserProfile:user']), - )) - db.send_create_signal('user', ['UserProfile']) - - - - def backwards(self, orm): - - # Deleting model 'Preference' - db.delete_table('user_preference') - - # Deleting model 'UserProfile' - db.delete_table('user_userprofile') - - - - models = { - 'auth.group': { - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)"}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'user.preference': { - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'preferences'", 'to': "orm['auth.User']"}), - 'value': ('django.db.models.fields.TextField', [], {'blank': 'True'}) - }, - 'user.userprofile': { - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'recover_key': ('django.db.models.fields.TextField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'unique': 'True'}) - } - } - - complete_apps = ['user'] diff --git a/pandora/user/migrations/0002_files.py b/pandora/user/migrations/0002_files.py deleted file mode 100644 index cb38136d..00000000 --- a/pandora/user/migrations/0002_files.py +++ /dev/null @@ -1,74 +0,0 @@ -# -*- coding: utf-8 -*- - -from south.db import db -from django.db import models -from user.models import * - -class Migration: - - def forwards(self, orm): - - # Adding field 'UserProfile.files_updated' - db.add_column('user_userprofile', 'files_updated', orm['user.userprofile:files_updated']) - - - - def backwards(self, orm): - - # Deleting field 'UserProfile.files_updated' - db.delete_column('user_userprofile', 'files_updated') - - - - models = { - 'auth.group': { - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)"}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'user.preference': { - 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}), - 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'preferences'", 'to': "orm['auth.User']"}), - 'value': ('django.db.models.fields.TextField', [], {'blank': 'True'}) - }, - 'user.userprofile': { - 'files_updated': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'recover_key': ('django.db.models.fields.TextField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'unique': 'True'}) - } - } - - complete_apps = ['user'] diff --git a/pandora/user/migrations/__init__.py b/pandora/user/migrations/__init__.py deleted file mode 100644 index e69de29b..00000000