Project

General

Profile

Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (494 Bytes)

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

    
4
class Migration:
5
    
6
    def forwards(self):
7
        # Model 'Spam'
8
        db.create_table("southtest_spam", (
9
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
10
            ('weight', models.FloatField()),
11
            ('expires', models.DateTimeField()),
12
            ('name', models.CharField(max_length=255))
13
        ))
14
    
15
    def backwards(self):
16
        db.delete_table("southtest_spam")
17