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 # Deleting field 'Audiobook.publishing_tags'
12 db.delete_column('archive_audiobook', 'publishing_tags')
14 # Deleting field 'Audiobook.published_tags'
15 db.delete_column('archive_audiobook', 'published_tags')
17 # Deleting field 'Audiobook.publish_wait'
18 db.delete_column('archive_audiobook', 'publish_wait')
20 # Deleting field 'Audiobook.published'
21 db.delete_column('archive_audiobook', 'published')
23 # Deleting field 'Audiobook.publishing'
24 db.delete_column('archive_audiobook', 'publishing')
26 # Adding field 'Audiobook.mp3_status'
27 db.add_column('archive_audiobook', 'mp3_status', self.gf('django.db.models.fields.SmallIntegerField')(null=True), keep_default=False)
29 # Adding field 'Audiobook.mp3_task'
30 db.add_column('archive_audiobook', 'mp3_task', self.gf('django.db.models.fields.CharField')(max_length=64, null=True), keep_default=False)
32 # Adding field 'Audiobook.mp3_tags'
33 db.add_column('archive_audiobook', 'mp3_tags', self.gf('jsonfield.fields.JSONField')(null=True), keep_default=False)
35 # Adding field 'Audiobook.mp3_published_tags'
36 db.add_column('archive_audiobook', 'mp3_published_tags', self.gf('jsonfield.fields.JSONField')(null=True), keep_default=False)
38 # Adding field 'Audiobook.mp3_published'
39 db.add_column('archive_audiobook', 'mp3_published', self.gf('django.db.models.fields.DateTimeField')(null=True), keep_default=False)
41 # Adding field 'Audiobook.ogg_status'
42 db.add_column('archive_audiobook', 'ogg_status', self.gf('django.db.models.fields.SmallIntegerField')(null=True), keep_default=False)
44 # Adding field 'Audiobook.ogg_task'
45 db.add_column('archive_audiobook', 'ogg_task', self.gf('django.db.models.fields.CharField')(max_length=64, null=True), keep_default=False)
47 # Adding field 'Audiobook.ogg_tags'
48 db.add_column('archive_audiobook', 'ogg_tags', self.gf('jsonfield.fields.JSONField')(null=True), keep_default=False)
50 # Adding field 'Audiobook.ogg_published_tags'
51 db.add_column('archive_audiobook', 'ogg_published_tags', self.gf('jsonfield.fields.JSONField')(null=True), keep_default=False)
53 # Adding field 'Audiobook.ogg_published'
54 db.add_column('archive_audiobook', 'ogg_published', self.gf('django.db.models.fields.DateTimeField')(null=True), keep_default=False)
57 def backwards(self, orm):
59 # Adding field 'Audiobook.publishing_tags'
60 db.add_column('archive_audiobook', 'publishing_tags', self.gf('jsonfield.fields.JSONField')(null=True), keep_default=False)
62 # Adding field 'Audiobook.published_tags'
63 db.add_column('archive_audiobook', 'published_tags', self.gf('jsonfield.fields.JSONField')(null=True), keep_default=False)
65 # Adding field 'Audiobook.publish_wait'
66 db.add_column('archive_audiobook', 'publish_wait', self.gf('django.db.models.fields.DateTimeField')(null=True), keep_default=False)
68 # Adding field 'Audiobook.published'
69 db.add_column('archive_audiobook', 'published', self.gf('django.db.models.fields.DateTimeField')(null=True), keep_default=False)
71 # Adding field 'Audiobook.publishing'
72 db.add_column('archive_audiobook', 'publishing', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
74 # Deleting field 'Audiobook.mp3_status'
75 db.delete_column('archive_audiobook', 'mp3_status')
77 # Deleting field 'Audiobook.mp3_task'
78 db.delete_column('archive_audiobook', 'mp3_task')
80 # Deleting field 'Audiobook.mp3_tags'
81 db.delete_column('archive_audiobook', 'mp3_tags')
83 # Deleting field 'Audiobook.mp3_published_tags'
84 db.delete_column('archive_audiobook', 'mp3_published_tags')
86 # Deleting field 'Audiobook.mp3_published'
87 db.delete_column('archive_audiobook', 'mp3_published')
89 # Deleting field 'Audiobook.ogg_status'
90 db.delete_column('archive_audiobook', 'ogg_status')
92 # Deleting field 'Audiobook.ogg_task'
93 db.delete_column('archive_audiobook', 'ogg_task')
95 # Deleting field 'Audiobook.ogg_tags'
96 db.delete_column('archive_audiobook', 'ogg_tags')
98 # Deleting field 'Audiobook.ogg_published_tags'
99 db.delete_column('archive_audiobook', 'ogg_published_tags')
101 # Deleting field 'Audiobook.ogg_published'
102 db.delete_column('archive_audiobook', 'ogg_published')
106 'archive.audiobook': {
107 'Meta': {'ordering': "('title',)", 'object_name': 'Audiobook'},
108 'artist': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
109 'conductor': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
110 'date': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
111 'encoded_by': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
112 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
113 'modified': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
114 'mp3_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True'}),
115 'mp3_published': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
116 'mp3_published_tags': ('jsonfield.fields.JSONField', [], {'null': 'True'}),
117 'mp3_status': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True'}),
118 'mp3_tags': ('jsonfield.fields.JSONField', [], {'null': 'True'}),
119 'mp3_task': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True'}),
120 'ogg_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True'}),
121 'ogg_published': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
122 'ogg_published_tags': ('jsonfield.fields.JSONField', [], {'null': 'True'}),
123 'ogg_status': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True'}),
124 'ogg_tags': ('jsonfield.fields.JSONField', [], {'null': 'True'}),
125 'ogg_task': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True'}),
126 'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['archive.Project']"}),
127 'source_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
128 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
129 'url': ('django.db.models.fields.URLField', [], {'max_length': '255'})
132 'Meta': {'ordering': "('name',)", 'object_name': 'Project'},
133 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
134 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'db_index': 'True'}),
135 'sponsors': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
139 complete_apps = ['archive']