src/hp/migrations/0001_initial.py
changeset 41 b6010b3d6ea8
equal deleted inserted replaced
40:342f180b09ec 41:b6010b3d6ea8
       
     1 # -*- coding: utf-8 -*-
       
     2 import datetime
       
     3 from south.db import db
       
     4 from south.v2 import SchemaMigration
       
     5 from django.db import models
       
     6 
       
     7 
       
     8 class Migration(SchemaMigration):
       
     9 
       
    10     def forwards(self, orm):
       
    11         # Adding model 'VideoKCRel'
       
    12         db.create_table('hp_videokcrel', (
       
    13             ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
       
    14             ('iri_id', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
       
    15             ('graph_id', self.gf('django.db.models.fields.CharField')(max_length=1024)),
       
    16             ('topic_id', self.gf('django.db.models.fields.CharField')(max_length=1024)),
       
    17         ))
       
    18         db.send_create_signal('hp', ['VideoKCRel'])
       
    19 
       
    20 
       
    21     def backwards(self, orm):
       
    22         # Deleting model 'VideoKCRel'
       
    23         db.delete_table('hp_videokcrel')
       
    24 
       
    25 
       
    26     models = {
       
    27         'hp.videokcrel': {
       
    28             'Meta': {'object_name': 'VideoKCRel'},
       
    29             'graph_id': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
       
    30             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
       
    31             'iri_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
       
    32             'topic_id': ('django.db.models.fields.CharField', [], {'max_length': '1024'})
       
    33         }
       
    34     }
       
    35 
       
    36     complete_apps = ['hp']