/bangkokhotel/lib/python2.5/site-packages/south/tests/fakeapp/migrations/0003_alter_spam.py
Python | 18 lines | 12 code | 6 blank | 0 comment | 0 complexity | b946fa34860f4649f593f9caa518ff8c MD5 | raw file
1from south.db import db
2from django.db import models
3
4class Migration:
5
6 def forwards(self):
7
8 db.alter_column("southtest_spam", 'weight', models.FloatField(null=True))
9
10 def backwards(self):
11
12 db.alter_column("southtest_spam", 'weight', models.FloatField())
13
14 models = {
15 "fakeapp.bug135": {
16 'date': ('models.DateTimeField', [], {'default': 'datetime.datetime(2009, 5, 6, 15, 33, 15, 780013)'}),
17 }
18 }