Преглед изворни кода

[desktop,jobsub] Fix migration model history

The migration model history in the jobsub and desktop apps got incorrect,
which would cause running "hue schemamigration --auto <app>" to regenerate
a migration that already exists. This corrects the history so these
unnecessary migrations won't be created.
Erick Tryzelaar пре 10 година
родитељ
комит
1c5421bf4b

+ 2 - 2
apps/jobsub/src/jobsub/migrations/0006_chg_varchars_to_textfields.py

@@ -99,7 +99,7 @@ class Migration(SchemaMigration):
         'jobsub.ooziejavaaction': {
             'Meta': {'object_name': 'OozieJavaAction', '_ormbases': ['jobsub.OozieAction']},
             'archives': ('django.db.models.fields.CharField', [], {'default': "'[]'", 'max_length': '512'}),
-            'args': ('django.db.models.fields.CharField', [], {'max_length': '4096', 'blank': 'True'}),
+            'args': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'files': ('django.db.models.fields.CharField', [], {'default': "'[]'", 'max_length': '512'}),
             'jar_path': ('django.db.models.fields.CharField', [], {'max_length': '512'}),
             'java_opts': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
@@ -126,4 +126,4 @@ class Migration(SchemaMigration):
         }
     }
 
-    complete_apps = ['jobsub']
+    complete_apps = ['jobsub']

+ 1 - 1
desktop/core/src/desktop/migrations/0013_auto__add_unique_documenttag_owner_tag.py

@@ -114,7 +114,7 @@ class Migration(SchemaMigration):
             'doc': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['desktop.Document']"}),
             'groups': ('django.db.models.fields.related.ManyToManyField', [], {'db_index': 'True', 'to': u"orm['auth.Group']", 'db_table': "'documentpermission_groups'", 'symmetrical': 'False'}),
             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'perms': ('django.db.models.fields.CharField', [], {'default': "'read'", 'max_length': '5'}),
+            'perms': ('django.db.models.fields.CharField', [], {'default': "'read'", 'max_length': '10'}),
             'users': ('django.db.models.fields.related.ManyToManyField', [], {'db_index': 'True', 'to': u"orm['auth.User']", 'db_table': "'documentpermission_users'", 'symmetrical': 'False'})
         },
         u'desktop.documenttag': {

+ 1 - 1
desktop/core/src/desktop/migrations/0014_auto__add_unique_document_content_type_object_id.py

@@ -114,7 +114,7 @@ class Migration(SchemaMigration):
             'doc': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['desktop.Document']"}),
             'groups': ('django.db.models.fields.related.ManyToManyField', [], {'db_index': 'True', 'to': u"orm['auth.Group']", 'db_table': "'documentpermission_groups'", 'symmetrical': 'False'}),
             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'perms': ('django.db.models.fields.CharField', [], {'default': "'read'", 'max_length': '5'}),
+            'perms': ('django.db.models.fields.CharField', [], {'default': "'read'", 'max_length': '10'}),
             'users': ('django.db.models.fields.related.ManyToManyField', [], {'db_index': 'True', 'to': u"orm['auth.User']", 'db_table': "'documentpermission_users'", 'symmetrical': 'False'})
         },
         u'desktop.documenttag': {

+ 1 - 1
desktop/core/src/desktop/migrations/0015_auto__add_unique_documentpermission_doc_perms.py

@@ -114,7 +114,7 @@ class Migration(SchemaMigration):
             'doc': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['desktop.Document']"}),
             'groups': ('django.db.models.fields.related.ManyToManyField', [], {'db_index': 'True', 'to': u"orm['auth.Group']", 'db_table': "'documentpermission_groups'", 'symmetrical': 'False'}),
             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'perms': ('django.db.models.fields.CharField', [], {'default': "'read'", 'max_length': '5'}),
+            'perms': ('django.db.models.fields.CharField', [], {'default': "'read'", 'max_length': '10'}),
             'users': ('django.db.models.fields.related.ManyToManyField', [], {'db_index': 'True', 'to': u"orm['auth.User']", 'db_table': "'documentpermission_users'", 'symmetrical': 'False'})
         },
         u'desktop.documenttag': {

+ 1 - 1
desktop/core/src/desktop/migrations/0016_auto__add_unique_document2_uuid_version_is_history.py

@@ -150,7 +150,7 @@ class Migration(SchemaMigration):
             'doc': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['desktop.Document']"}),
             'groups': ('django.db.models.fields.related.ManyToManyField', [], {'db_index': 'True', 'to': u"orm['auth.Group']", 'db_table': "'documentpermission_groups'", 'symmetrical': 'False'}),
             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'perms': ('django.db.models.fields.CharField', [], {'default': "'read'", 'max_length': '5'}),
+            'perms': ('django.db.models.fields.CharField', [], {'default': "'read'", 'max_length': '10'}),
             'users': ('django.db.models.fields.related.ManyToManyField', [], {'db_index': 'True', 'to': u"orm['auth.User']", 'db_table': "'documentpermission_users'", 'symmetrical': 'False'})
         },
         u'desktop.documenttag': {