https pypi server in requirements
[audio.git] / apps / archive / migrations / 0001_initial.py
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         # Adding model 'Project'
12         db.create_table('archive_project', (
13             ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14             ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=128, db_index=True)),
15             ('sponsors', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
16         ))
17         db.send_create_signal('archive', ['Project'])
18
19         # Adding model 'Audiobook'
20         db.create_table('archive_audiobook', (
21             ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
22             ('source_file', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
23             ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
24             ('artist', self.gf('django.db.models.fields.CharField')(max_length=255)),
25             ('conductor', self.gf('django.db.models.fields.CharField')(max_length=255)),
26             ('encoded_by', self.gf('django.db.models.fields.CharField')(max_length=255)),
27             ('date', self.gf('django.db.models.fields.CharField')(max_length=255)),
28             ('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['archive.Project'])),
29             ('url', self.gf('django.db.models.fields.URLField')(max_length=255)),
30             ('modified', self.gf('django.db.models.fields.DateTimeField')(null=True)),
31             ('published_tags', self.gf('jsonfield.fields.JSONField')(null=True)),
32             ('mp3_file', self.gf('django.db.models.fields.files.FileField')(max_length=100, null=True)),
33             ('ogg_file', self.gf('django.db.models.fields.files.FileField')(max_length=100, null=True)),
34             ('publishing_tags', self.gf('jsonfield.fields.JSONField')(null=True)),
35             ('publish_wait', self.gf('django.db.models.fields.DateTimeField')(null=True)),
36             ('publishing', self.gf('django.db.models.fields.BooleanField')(default=False)),
37             ('published', self.gf('django.db.models.fields.DateTimeField')(null=True)),
38         ))
39         db.send_create_signal('archive', ['Audiobook'])
40
41
42     def backwards(self, orm):
43         
44         # Deleting model 'Project'
45         db.delete_table('archive_project')
46
47         # Deleting model 'Audiobook'
48         db.delete_table('archive_audiobook')
49
50
51     models = {
52         'archive.audiobook': {
53             'Meta': {'ordering': "('title',)", 'object_name': 'Audiobook'},
54             'artist': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
55             'conductor': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
56             'date': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
57             'encoded_by': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
58             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59             'modified': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
60             'mp3_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True'}),
61             'ogg_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True'}),
62             'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['archive.Project']"}),
63             'publish_wait': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
64             'published': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
65             'published_tags': ('jsonfield.fields.JSONField', [], {'null': 'True'}),
66             'publishing': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
67             'publishing_tags': ('jsonfield.fields.JSONField', [], {'null': 'True'}),
68             'source_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
69             'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
70             'url': ('django.db.models.fields.URLField', [], {'max_length': '255'})
71         },
72         'archive.project': {
73             'Meta': {'ordering': "('name',)", 'object_name': 'Project'},
74             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
75             'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'db_index': 'True'}),
76             'sponsors': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
77         }
78     }
79
80     complete_apps = ['archive']