1 # -*- coding: utf-8 -*-
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
8 class Migration(SchemaMigration):
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)),
18 db.send_create_signal(u'libraries', ['Library'])
21 def backwards(self, orm):
22 # Deleting model 'Library'
23 db.delete_table(u'libraries_library')
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'})
36 complete_apps = ['libraries']