|
68
|
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 field 'VideoKCRel.project_id' |
|
|
12 |
db.add_column('hp_videokcrel', 'project_id', |
|
|
13 |
self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True), |
|
|
14 |
keep_default=False) |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
def backwards(self, orm): |
|
|
18 |
# Deleting field 'VideoKCRel.project_id' |
|
|
19 |
db.delete_column('hp_videokcrel', 'project_id') |
|
|
20 |
|
|
|
21 |
|
|
|
22 |
models = { |
|
|
23 |
'hp.videokcrel': { |
|
|
24 |
'Meta': {'object_name': 'VideoKCRel'}, |
|
|
25 |
'graph_id': ('django.db.models.fields.CharField', [], {'max_length': '1024'}), |
|
|
26 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
|
27 |
'iri_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), |
|
|
28 |
'project_id': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}), |
|
|
29 |
'topic_id': ('django.db.models.fields.CharField', [], {'max_length': '1024'}) |
|
|
30 |
} |
|
|
31 |
} |
|
|
32 |
|
|
|
33 |
complete_apps = ['hp'] |