add migration V00.04
authorymh <ymh.work@gmail.com>
Fri, 16 Nov 2012 18:36:12 +0100
changeset 68 58e36c7f7e30
parent 67 fd5f949f766a
child 69 feee7c45979d
add migration
src/hp/migrations/0002_auto__add_field_videokcrel_project_id.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/hp/migrations/0002_auto__add_field_videokcrel_project_id.py	Fri Nov 16 18:36:12 2012 +0100
@@ -0,0 +1,33 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+        # Adding field 'VideoKCRel.project_id'
+        db.add_column('hp_videokcrel', 'project_id',
+                      self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True),
+                      keep_default=False)
+
+
+    def backwards(self, orm):
+        # Deleting field 'VideoKCRel.project_id'
+        db.delete_column('hp_videokcrel', 'project_id')
+
+
+    models = {
+        'hp.videokcrel': {
+            'Meta': {'object_name': 'VideoKCRel'},
+            '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']
\ No newline at end of file