Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
MySQL5.6でhueのsyncdbが動かない件のとりあえずの対応
diff -r -u hue.orig/apps/jobsub/src/jobsub/migrations/0003_convertCharFieldtoTextField.py hue/apps/jobsub/src/jobsub/migrations/0003_convertCharFieldtoTextField.py
--- hue.orig/apps/jobsub/src/jobsub/migrations/0003_convertCharFieldtoTextField.py 2013-12-09 16:06:58.518311322 +0000
+++ hue/apps/jobsub/src/jobsub/migrations/0003_convertCharFieldtoTextField.py 2013-12-14 13:10:27.126396795 +0000
@@ -9,13 +9,14 @@
def forwards(self, orm):
# Changing field 'OozieStreamingAction.job_properties'
- db.alter_column('jobsub_ooziestreamingaction', 'job_properties', self.gf('django.db.models.fields.TextField')())
+ #db.alter_column('jobsub_ooziestreamingaction', 'job_properties', self.gf('django.db.models.fields.TextField')())
# Changing field 'OozieMapreduceAction.job_properties'
- db.alter_column('jobsub_ooziemapreduceaction', 'job_properties', self.gf('django.db.models.fields.TextField')())
+ #db.alter_column('jobsub_ooziemapreduceaction', 'job_properties', self.gf('django.db.models.fields.TextField')())
# Changing field 'OozieJavaAction.job_properties'
- db.alter_column('jobsub_ooziejavaaction', 'job_properties', self.gf('django.db.models.fields.TextField')())
+ #db.alter_column('jobsub_ooziejavaaction', 'job_properties', self.gf('django.db.models.fields.TextField')())
+ return;
def backwards(self, orm):
diff -r -u hue.orig/apps/jobsub/src/jobsub/migrations/0006_chg_varchars_to_textfields.py hue/apps/jobsub/src/jobsub/migrations/0006_chg_varchars_to_textfields.py
--- hue.orig/apps/jobsub/src/jobsub/migrations/0006_chg_varchars_to_textfields.py 2013-12-09 16:06:58.516310321 +0000
+++ hue/apps/jobsub/src/jobsub/migrations/0006_chg_varchars_to_textfields.py 2013-12-14 13:10:27.122396795 +0000
@@ -11,8 +11,9 @@
def forwards(self, orm):
# Changing field 'JobDesign.data'
- db.alter_column('jobsub_jobdesign', 'data', self.gf('django.db.models.fields.TextField')())
- db.alter_column('jobsub_ooziejavaaction', 'args', self.gf('django.db.models.fields.TextField')(blank=True))
+ #db.alter_column('jobsub_jobdesign', 'data', self.gf('django.db.models.fields.TextField')())
+ #db.alter_column('jobsub_ooziejavaaction', 'args', self.gf('django.db.models.fields.TextField')(blank=True))
+ return
def backwards(self, orm):
diff -r -u hue.orig/apps/oozie/src/oozie/migrations/0012_auto__add_subworkflow__chg_field_email_subject__chg_field_email_body.py hue/apps/oozie/src/oozie/migrations/0012_auto__add_subworkflow__chg_field_email_subject__chg_field_email_body.py
--- hue.orig/apps/oozie/src/oozie/migrations/0012_auto__add_subworkflow__chg_field_email_subject__chg_field_email_body.py 2013-12-09 16:06:58.774439321 +0000
+++ hue/apps/oozie/src/oozie/migrations/0012_auto__add_subworkflow__chg_field_email_subject__chg_field_email_body.py 2013-12-14 13:10:27.411396796 +0000
@@ -11,17 +11,17 @@
# Adding model 'SubWorkflow'
db.create_table('oozie_subworkflow', (
('propagate_configuration', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
- ('job_properties', self.gf('django.db.models.fields.TextField')(default='[]')),
+ ('job_properties', self.gf('django.db.models.fields.CharField')(default='[]', max_length=32768)),
('sub_workflow', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['oozie.Workflow'])),
('node_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['oozie.Node'], unique=True, primary_key=True)),
))
db.send_create_signal('oozie', ['SubWorkflow'])
# Changing field 'Email.subject'
- db.alter_column('oozie_email', 'subject', self.gf('django.db.models.fields.TextField')())
+ #db.alter_column('oozie_email', 'subject', self.gf('django.db.models.fields.TextField')())
# Changing field 'Email.body'
- db.alter_column('oozie_email', 'body', self.gf('django.db.models.fields.TextField')())
+ #db.alter_column('oozie_email', 'body', self.gf('django.db.models.fields.TextField')())
def backwards(self, orm):
diff -r -u hue.orig/apps/oozie/src/oozie/migrations/0016_auto__add_field_coordinator_job_properties.py hue/apps/oozie/src/oozie/migrations/0016_auto__add_field_coordinator_job_properties.py
--- hue.orig/apps/oozie/src/oozie/migrations/0016_auto__add_field_coordinator_job_properties.py 2013-12-09 16:06:58.774439321 +0000
+++ hue/apps/oozie/src/oozie/migrations/0016_auto__add_field_coordinator_job_properties.py 2013-12-14 13:10:27.412396795 +0000
@@ -9,7 +9,7 @@
def forwards(self, orm):
# Adding field 'Coordinator.job_properties'
- db.add_column('oozie_coordinator', 'job_properties', self.gf('django.db.models.fields.TextField')(default='[]'), keep_default=False)
+ db.add_column('oozie_coordinator', 'job_properties', self.gf('django.db.models.fields.CharField')(default='[]', max_length=32768), keep_default=False)
def backwards(self, orm):
diff -r -u hue.orig/apps/oozie/src/oozie/migrations/0020_chg_large_varchars_to_textfields.py hue/apps/oozie/src/oozie/migrations/0020_chg_large_varchars_to_textfields.py
--- hue.orig/apps/oozie/src/oozie/migrations/0020_chg_large_varchars_to_textfields.py 2013-12-09 16:06:58.772438321 +0000
+++ hue/apps/oozie/src/oozie/migrations/0020_chg_large_varchars_to_textfields.py 2013-12-14 13:10:27.407396796 +0000
@@ -8,7 +8,8 @@
class Migration(SchemaMigration):
def forwards(self, orm):
- db.alter_column('oozie_java', 'args', self.gf('django.db.models.fields.TextField')(blank=True))
+ #db.alter_column('oozie_java', 'args', self.gf('django.db.models.fields.TextField')(blank=True))
+ return
def backwards(self, orm):
diff -r -u hue.orig/apps/oozie/src/oozie/migrations/0021_auto__chg_field_java_args__add_field_job_is_trashed.py hue/apps/oozie/src/oozie/migrations/0021_auto__chg_field_java_args__add_field_job_is_trashed.py
--- hue.orig/apps/oozie/src/oozie/migrations/0021_auto__chg_field_java_args__add_field_job_is_trashed.py 2013-12-09 16:06:58.775439821 +0000
+++ hue/apps/oozie/src/oozie/migrations/0021_auto__chg_field_java_args__add_field_job_is_trashed.py 2013-12-14 13:10:27.413396795 +0000
@@ -9,7 +9,7 @@
def forwards(self, orm):
# Changing field 'Java.args'
- db.alter_column('oozie_java', 'args', self.gf('django.db.models.fields.TextField')(blank=True))
+ #db.alter_column('oozie_java', 'args', self.gf('django.db.models.fields.TextField')(blank=True))
# Adding field 'Job.is_trashed'
db.add_column('oozie_job', 'is_trashed', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True, blank=True), keep_default=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment