0001_initial.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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 'Item'
  9. db.create_table(u'monitor_item', (
  10. ('id', self.gf('django.db.models.fields.CharField')(max_length=255, primary_key=True)),
  11. ('value', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
  12. ('updated', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
  13. ))
  14. db.send_create_signal(u'monitor', ['Item'])
  15. def backwards(self, orm):
  16. # Deleting model 'Item'
  17. db.delete_table(u'monitor_item')
  18. models = {
  19. u'monitor.item': {
  20. 'Meta': {'object_name': 'Item'},
  21. 'id': ('django.db.models.fields.CharField', [], {'max_length': '255', 'primary_key': 'True'}),
  22. 'updated': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
  23. 'value': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
  24. }
  25. }
  26. complete_apps = ['monitor']