use newest librarian
[wolnelektury.git] / apps / libraries / 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 'Library'
12         db.create_table(u'libraries_library', (
13             (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14             ('name', self.gf('django.db.models.fields.CharField')(max_length=120, blank=True)),
15             ('url', self.gf('django.db.models.fields.CharField')(max_length=120, blank=True)),
16             ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
17         ))
18         db.send_create_signal(u'libraries', ['Library'])
19
20
21     def backwards(self, orm):
22         # Deleting model 'Library'
23         db.delete_table(u'libraries_library')
24
25
26     models = {
27         u'libraries.library': {
28             'Meta': {'object_name': 'Library'},
29             'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
30             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
31             'name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
32             'url': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'})
33         }
34     }
35
36     complete_apps = ['libraries']