Initial commit
[copyspeak.git] / src / words / 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 'Word'
12         db.create_table(u'words_word', (
13             (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14             ('word', self.gf('django.db.models.fields.CharField')(max_length=255)),
15             ('slug', self.gf('django.db.models.fields.SlugField')(unique=True, max_length=50)),
16             ('alignment', self.gf('django.db.models.fields.CharField')(max_length=64)),
17             ('examples', self.gf('django.db.models.fields.TextField')()),
18             ('usage', self.gf('django.db.models.fields.TextField')()),
19             ('recommendations', self.gf('django.db.models.fields.TextField')()),
20         ))
21         db.send_create_signal(u'words', ['Word'])
22
23
24     def backwards(self, orm):
25         # Deleting model 'Word'
26         db.delete_table(u'words_word')
27
28
29     models = {
30         u'words.word': {
31             'Meta': {'object_name': 'Word'},
32             'alignment': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
33             'examples': ('django.db.models.fields.TextField', [], {}),
34             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35             'recommendations': ('django.db.models.fields.TextField', [], {}),
36             'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
37             'usage': ('django.db.models.fields.TextField', [], {}),
38             'word': ('django.db.models.fields.CharField', [], {'max_length': '255'})
39         }
40     }
41
42     complete_apps = ['words']