0001_initial.py 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. # Adding model 'Bookmark'
  9. db.create_table(u'jet_bookmark', (
  10. (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
  11. ('url', self.gf('django.db.models.fields.URLField')(max_length=200)),
  12. ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
  13. ('user', self.gf('django.db.models.fields.PositiveIntegerField')()),
  14. ('date_add', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
  15. ))
  16. db.send_create_signal(u'jet', ['Bookmark'])
  17. # Adding model 'PinnedApplication'
  18. db.create_table(u'jet_pinnedapplication', (
  19. (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
  20. ('app_label', self.gf('django.db.models.fields.CharField')(max_length=255)),
  21. ('user', self.gf('django.db.models.fields.PositiveIntegerField')()),
  22. ('date_add', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
  23. ))
  24. db.send_create_signal(u'jet', ['PinnedApplication'])
  25. # Adding model 'UserDashboardModule'
  26. db.create_table(u'jet_userdashboardmodule', (
  27. (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
  28. ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
  29. ('module', self.gf('django.db.models.fields.CharField')(max_length=255)),
  30. ('app_label', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
  31. ('user', self.gf('django.db.models.fields.PositiveIntegerField')()),
  32. ('column', self.gf('django.db.models.fields.PositiveIntegerField')()),
  33. ('order', self.gf('django.db.models.fields.IntegerField')()),
  34. ('settings', self.gf('django.db.models.fields.TextField')(default='', blank=True)),
  35. ('children', self.gf('django.db.models.fields.TextField')(default='', blank=True)),
  36. ('collapsed', self.gf('django.db.models.fields.BooleanField')(default=False)),
  37. ))
  38. db.send_create_signal(u'jet', ['UserDashboardModule'])
  39. def backwards(self, orm):
  40. # Deleting model 'Bookmark'
  41. db.delete_table(u'jet_bookmark')
  42. # Deleting model 'PinnedApplication'
  43. db.delete_table(u'jet_pinnedapplication')
  44. # Deleting model 'UserDashboardModule'
  45. db.delete_table(u'jet_userdashboardmodule')
  46. models = {
  47. u'jet.bookmark': {
  48. 'Meta': {'ordering': "('date_add',)", 'object_name': 'Bookmark'},
  49. 'date_add': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  50. u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  51. 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
  52. 'url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
  53. 'user': ('django.db.models.fields.PositiveIntegerField', [], {})
  54. },
  55. u'jet.pinnedapplication': {
  56. 'Meta': {'ordering': "('date_add',)", 'object_name': 'PinnedApplication'},
  57. 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
  58. 'date_add': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  59. u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  60. 'user': ('django.db.models.fields.PositiveIntegerField', [], {})
  61. },
  62. u'jet.userdashboardmodule': {
  63. 'Meta': {'ordering': "('column', 'order')", 'object_name': 'UserDashboardModule'},
  64. 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
  65. 'children': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
  66. 'collapsed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  67. 'column': ('django.db.models.fields.PositiveIntegerField', [], {}),
  68. u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  69. 'module': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
  70. 'order': ('django.db.models.fields.IntegerField', [], {}),
  71. 'settings': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
  72. 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
  73. 'user': ('django.db.models.fields.PositiveIntegerField', [], {})
  74. }
  75. }
  76. complete_apps = ['jet']