Uaktualnienie django-south.
[wolnelektury.git] / apps / south / tests / fakeapp / migrations / 0002_eggs.py
1 from south.db import db
2 from django.db import models
3
4 class Migration:
5     
6     def forwards(self):
7         
8         Spam = db.mock_model(model_name='Spam', db_table='southtest_spam', db_tablespace='', pk_field_name='id', pk_field_type=models.AutoField)
9         
10         db.create_table("southtest_eggs", (
11             ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
12             ('size', models.FloatField()),
13             ('quantity', models.IntegerField()),
14             ('spam', models.ForeignKey(Spam)),
15         ))
16     
17     def backwards(self):
18         
19         db.delete_table("southtest_eggs")
20