0003_auto__del_forumrole.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. # -*- coding: utf-8 -*-
  2. from south.utils import datetime_utils as 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. # Deleting model 'ForumRole'
  9. db.delete_table(u'acl_forumrole')
  10. def backwards(self, orm):
  11. # Adding model 'ForumRole'
  12. db.create_table(u'acl_forumrole', (
  13. ('pickled_permissions', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
  14. (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
  15. ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
  16. ))
  17. db.send_create_signal(u'acl', ['ForumRole'])
  18. models = {
  19. u'acl.role': {
  20. 'Meta': {'object_name': 'Role'},
  21. u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  22. 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
  23. 'pickled_permissions': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
  24. }
  25. }
  26. complete_apps = ['acl']