03cb130e87b44a0be491b76ccc901ef075b8aa35
[audio.git] /
1 # encoding: utf-8
2 import datetime
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
6
7 class Migration(SchemaMigration):
8
9     def forwards(self, orm):
10         
11         # Deleting field 'Audiobook.publishing_tags'
12         db.delete_column('archive_audiobook', 'publishing_tags')
13
14         # Deleting field 'Audiobook.published_tags'
15         db.delete_column('archive_audiobook', 'published_tags')
16
17         # Deleting field 'Audiobook.publish_wait'
18         db.delete_column('archive_audiobook', 'publish_wait')
19
20         # Deleting field 'Audiobook.published'
21         db.delete_column('archive_audiobook', 'published')
22
23         # Deleting field 'Audiobook.publishing'
24         db.delete_column('archive_audiobook', 'publishing')
25
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)
28
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)
31
32         # Adding field 'Audiobook.mp3_tags'
33         db.add_column('archive_audiobook', 'mp3_tags', self.gf('jsonfield.fields.JSONField')(null=True), keep_default=False)
34
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)
37
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)
40
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)
43
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)
46
47         # Adding field 'Audiobook.ogg_tags'
48         db.add_column('archive_audiobook', 'ogg_tags', self.gf('jsonfield.fields.JSONField')(null=True), keep_default=False)
49
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)
52
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)
55
56
57     def backwards(self, orm):
58         
59         # Adding field 'Audiobook.publishing_tags'
60         db.add_column('archive_audiobook', 'publishing_tags', self.gf('jsonfield.fields.JSONField')(null=True), keep_default=False)
61
62         # Adding field 'Audiobook.published_tags'
63         db.add_column('archive_audiobook', 'published_tags', self.gf('jsonfield.fields.JSONField')(null=True), keep_default=False)
64
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)
67
68         # Adding field 'Audiobook.published'
69         db.add_column('archive_audiobook', 'published', self.gf('django.db.models.fields.DateTimeField')(null=True), keep_default=False)
70
71         # Adding field 'Audiobook.publishing'
72         db.add_column('archive_audiobook', 'publishing', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
73
74         # Deleting field 'Audiobook.mp3_status'
75         db.delete_column('archive_audiobook', 'mp3_status')
76
77         # Deleting field 'Audiobook.mp3_task'
78         db.delete_column('archive_audiobook', 'mp3_task')
79
80         # Deleting field 'Audiobook.mp3_tags'
81         db.delete_column('archive_audiobook', 'mp3_tags')
82
83         # Deleting field 'Audiobook.mp3_published_tags'
84         db.delete_column('archive_audiobook', 'mp3_published_tags')
85
86         # Deleting field 'Audiobook.mp3_published'
87         db.delete_column('archive_audiobook', 'mp3_published')
88
89         # Deleting field 'Audiobook.ogg_status'
90         db.delete_column('archive_audiobook', 'ogg_status')
91
92         # Deleting field 'Audiobook.ogg_task'
93         db.delete_column('archive_audiobook', 'ogg_task')
94
95         # Deleting field 'Audiobook.ogg_tags'
96         db.delete_column('archive_audiobook', 'ogg_tags')
97
98         # Deleting field 'Audiobook.ogg_published_tags'
99         db.delete_column('archive_audiobook', 'ogg_published_tags')
100
101         # Deleting field 'Audiobook.ogg_published'
102         db.delete_column('archive_audiobook', 'ogg_published')
103
104
105     models = {
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'})
130         },
131         'archive.project': {
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'})
136         }
137     }
138
139     complete_apps = ['archive']