src/hp/migrations/0003_auto__add_field_videokcrel_content_title.py
author ymh <ymh.work@gmail.com>
Tue, 27 Nov 2012 01:52:43 +0100
changeset 94 88e08fd7a160
parent 91 eb2aa2a469e2
permissions -rw-r--r--
Added tag V00.09 for changeset f7f00283216a

# -*- coding: utf-8 -*-
from south.db import db
from south.v2 import SchemaMigration


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding field 'VideoKCRel.content_title'        
        db.add_column('hp_videokcrel', 'content_title', #@UndefinedVariable
                      self.gf('django.db.models.fields.CharField')(max_length=1024, null=True, blank=True),
                      keep_default=False)


    def backwards(self, orm):
        # Deleting field 'VideoKCRel.content_title'
        db.delete_column('hp_videokcrel', 'content_title') #@UndefinedVariable


    models = {
        'hp.videokcrel': {
            'Meta': {'object_name': 'VideoKCRel'},
            'content_title': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
            'graph_id': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'iri_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
            'project_id': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
            'topic_id': ('django.db.models.fields.CharField', [], {'max_length': '1024'})
        }
    }

    complete_apps = ['hp']