3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
9 def forwards(self, orm):
11 # Changing field 'Audiobook.source_file'
12 db.alter_column('archive_audiobook', 'source_file', self.gf('django.db.models.fields.files.FileField')(max_length=255))
15 def backwards(self, orm):
17 # Changing field 'Audiobook.source_file'
18 db.alter_column('archive_audiobook', 'source_file', self.gf('django.db.models.fields.files.FileField')(max_length=100))
22 'archive.audiobook': {
23 'Meta': {'ordering': "('title',)", 'object_name': 'Audiobook'},
24 'artist': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
25 'conductor': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
26 'date': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
27 'encoded_by': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
28 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
29 'modified': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
30 'mp3_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True'}),
31 'mp3_published': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
32 'mp3_published_tags': ('jsonfield.fields.JSONField', [], {'null': 'True'}),
33 'mp3_status': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True'}),
34 'mp3_tags': ('jsonfield.fields.JSONField', [], {'null': 'True'}),
35 'mp3_task': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True'}),
36 'ogg_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True'}),
37 'ogg_published': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
38 'ogg_published_tags': ('jsonfield.fields.JSONField', [], {'null': 'True'}),
39 'ogg_status': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True'}),
40 'ogg_tags': ('jsonfield.fields.JSONField', [], {'null': 'True'}),
41 'ogg_task': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True'}),
42 'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['archive.Project']"}),
43 'source_file': ('django.db.models.fields.files.FileField', [], {'max_length': '255'}),
44 'source_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
45 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
46 'translator': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
47 'url': ('django.db.models.fields.URLField', [], {'max_length': '255'})
50 'Meta': {'ordering': "('name',)", 'object_name': 'Project'},
51 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
52 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'db_index': 'True'}),
53 'sponsors': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
57 complete_apps = ['archive']