ignore .comments
[edumed.git] / publishers / migrations / 0001_initial.py
1 # -*- coding: 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
8 class Migration(SchemaMigration):
9
10     def forwards(self, orm):
11         # Adding model 'Publisher'
12         db.create_table(u'publishers_publisher', (
13             (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14             ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
15             ('logo', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
16         ))
17         db.send_create_signal(u'publishers', ['Publisher'])
18
19
20     def backwards(self, orm):
21         # Deleting model 'Publisher'
22         db.delete_table(u'publishers_publisher')
23
24
25     models = {
26         u'publishers.publisher': {
27             'Meta': {'object_name': 'Publisher'},
28             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
29             'logo': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
30             'name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
31         }
32     }
33
34     complete_apps = ['publishers']