0003_convertCharFieldtoTextField.py 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. # encoding: 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. # Changing field 'OozieStreamingAction.job_properties'
  9. db.alter_column('jobsub_ooziestreamingaction', 'job_properties', self.gf('django.db.models.fields.TextField')())
  10. # Changing field 'OozieMapreduceAction.job_properties'
  11. db.alter_column('jobsub_ooziemapreduceaction', 'job_properties', self.gf('django.db.models.fields.TextField')())
  12. # Changing field 'OozieJavaAction.job_properties'
  13. db.alter_column('jobsub_ooziejavaaction', 'job_properties', self.gf('django.db.models.fields.TextField')())
  14. def backwards(self, orm):
  15. # Changing field 'OozieStreamingAction.job_properties'
  16. db.alter_column('jobsub_ooziestreamingaction', 'job_properties', self.gf('django.db.models.fields.CharField')(max_length=32768))
  17. # Changing field 'OozieMapreduceAction.job_properties'
  18. db.alter_column('jobsub_ooziemapreduceaction', 'job_properties', self.gf('django.db.models.fields.CharField')(max_length=32768))
  19. # Changing field 'OozieJavaAction.job_properties'
  20. db.alter_column('jobsub_ooziejavaaction', 'job_properties', self.gf('django.db.models.fields.CharField')(max_length=32768))
  21. models = {
  22. 'auth.group': {
  23. 'Meta': {'object_name': 'Group'},
  24. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  25. 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
  26. 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
  27. },
  28. 'auth.permission': {
  29. 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
  30. 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  31. 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
  32. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  33. 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
  34. },
  35. 'auth.user': {
  36. 'Meta': {'object_name': 'User'},
  37. 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  38. 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
  39. 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
  40. 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
  41. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  42. 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
  43. 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
  44. 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
  45. 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  46. 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
  47. 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
  48. 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
  49. 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
  50. },
  51. 'contenttypes.contenttype': {
  52. 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
  53. 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  54. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  55. 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  56. 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
  57. },
  58. 'jobsub.checkforsetup': {
  59. 'Meta': {'object_name': 'CheckForSetup'},
  60. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  61. 'setup_level': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
  62. 'setup_run': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
  63. },
  64. 'jobsub.jobdesign': {
  65. 'Meta': {'object_name': 'JobDesign'},
  66. 'data': ('django.db.models.fields.CharField', [], {'max_length': '4096'}),
  67. 'description': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
  68. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  69. 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
  70. 'name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
  71. 'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
  72. 'type': ('django.db.models.fields.CharField', [], {'max_length': '128'})
  73. },
  74. 'jobsub.jobhistory': {
  75. 'Meta': {'object_name': 'JobHistory'},
  76. 'design': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['jobsub.OozieDesign']"}),
  77. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  78. 'job_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
  79. 'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
  80. 'submission_date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
  81. },
  82. 'jobsub.oozieaction': {
  83. 'Meta': {'object_name': 'OozieAction'},
  84. 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
  85. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
  86. },
  87. 'jobsub.ooziedesign': {
  88. 'Meta': {'object_name': 'OozieDesign'},
  89. 'description': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'blank': 'True'}),
  90. 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  91. 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
  92. 'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
  93. 'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
  94. 'root_action': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['jobsub.OozieAction']"})
  95. },
  96. 'jobsub.ooziejavaaction': {
  97. 'Meta': {'object_name': 'OozieJavaAction', '_ormbases': ['jobsub.OozieAction']},
  98. 'archives': ('django.db.models.fields.CharField', [], {'default': "'[]'", 'max_length': '512'}),
  99. 'args': ('django.db.models.fields.CharField', [], {'max_length': '4096', 'blank': 'True'}),
  100. 'files': ('django.db.models.fields.CharField', [], {'default': "'[]'", 'max_length': '512'}),
  101. 'jar_path': ('django.db.models.fields.CharField', [], {'max_length': '512'}),
  102. 'java_opts': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
  103. 'job_properties': ('django.db.models.fields.TextField', [], {'default': "'[]'"}),
  104. 'main_class': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
  105. 'oozieaction_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['jobsub.OozieAction']", 'unique': 'True', 'primary_key': 'True'})
  106. },
  107. 'jobsub.ooziemapreduceaction': {
  108. 'Meta': {'object_name': 'OozieMapreduceAction', '_ormbases': ['jobsub.OozieAction']},
  109. 'archives': ('django.db.models.fields.CharField', [], {'default': "'[]'", 'max_length': '512'}),
  110. 'files': ('django.db.models.fields.CharField', [], {'default': "'[]'", 'max_length': '512'}),
  111. 'jar_path': ('django.db.models.fields.CharField', [], {'max_length': '512'}),
  112. 'job_properties': ('django.db.models.fields.TextField', [], {'default': "'[]'"}),
  113. 'oozieaction_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['jobsub.OozieAction']", 'unique': 'True', 'primary_key': 'True'})
  114. },
  115. 'jobsub.ooziestreamingaction': {
  116. 'Meta': {'object_name': 'OozieStreamingAction', '_ormbases': ['jobsub.OozieAction']},
  117. 'archives': ('django.db.models.fields.CharField', [], {'default': "'[]'", 'max_length': '512'}),
  118. 'files': ('django.db.models.fields.CharField', [], {'default': "'[]'", 'max_length': '512'}),
  119. 'job_properties': ('django.db.models.fields.TextField', [], {'default': "'[]'"}),
  120. 'mapper': ('django.db.models.fields.CharField', [], {'max_length': '512'}),
  121. 'oozieaction_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['jobsub.OozieAction']", 'unique': 'True', 'primary_key': 'True'}),
  122. 'reducer': ('django.db.models.fields.CharField', [], {'max_length': '512'})
  123. }
  124. }
  125. complete_apps = ['jobsub']