0002_auto__del_userdashboardmodule.py 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 'UserDashboardModule'
  9. db.delete_table(u'jet_userdashboardmodule')
  10. def backwards(self, orm):
  11. # Adding model 'UserDashboardModule'
  12. db.create_table(u'jet_userdashboardmodule', (
  13. ('collapsed', self.gf('django.db.models.fields.BooleanField')(default=False)),
  14. ('module', self.gf('django.db.models.fields.CharField')(max_length=255)),
  15. ('user', self.gf('django.db.models.fields.PositiveIntegerField')()),
  16. ('children', self.gf('django.db.models.fields.TextField')(default='', blank=True)),
  17. ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
  18. ('column', self.gf('django.db.models.fields.PositiveIntegerField')()),
  19. ('settings', self.gf('django.db.models.fields.TextField')(default='', blank=True)),
  20. (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
  21. ('app_label', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
  22. ('order', self.gf('django.db.models.fields.IntegerField')()),
  23. ))
  24. db.send_create_signal(u'jet', ['UserDashboardModule'])
  25. models = {
  26. u'jet.bookmark': {
  27. 'Meta': {'ordering': "('date_add',)", 'object_name': 'Bookmark'},
  28. 'date_add': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  29. u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  30. 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
  31. 'url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
  32. 'user': ('django.db.models.fields.PositiveIntegerField', [], {})
  33. },
  34. u'jet.pinnedapplication': {
  35. 'Meta': {'ordering': "('date_add',)", 'object_name': 'PinnedApplication'},
  36. 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
  37. 'date_add': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  38. u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  39. 'user': ('django.db.models.fields.PositiveIntegerField', [], {})
  40. }
  41. }
  42. complete_apps = ['jet']