Project

General

Profile

Statistics
| Branch: | Revision:

root / env / lib / python2.7 / site-packages / south / tests / fakeapp / migrations / 0003_alter_spam.py @ d1a4905f

History | View | Annotate | Download (480 Bytes)

1
from south.db import db
2
from django.db import models
3

    
4
class 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
    }