0001_initial.py 965 B

1234567891011121314151617181920212223242526272829303132
  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. class Migration(SchemaMigration):
  7. def forwards(self, orm):
  8. # Adding model 'Fixture'
  9. db.create_table(u'setup_fixture', (
  10. (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
  11. ('app_name', self.gf('django.db.models.fields.CharField')(max_length=255)),
  12. ))
  13. db.send_create_signal(u'setup', ['Fixture'])
  14. def backwards(self, orm):
  15. # Deleting model 'Fixture'
  16. db.delete_table(u'setup_fixture')
  17. models = {
  18. u'setup.fixture': {
  19. 'Meta': {'object_name': 'Fixture'},
  20. 'app_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
  21. u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
  22. }
  23. }
  24. complete_apps = ['setup']