]> git.parisson.com Git - pdfannotator.git/blob
7ec1b22377c4e514a96581a82cefea9e81dd79ab
[pdfannotator.git] /
1 # -*- coding: utf-8 -*-
2 from south.utils import datetime_utils as 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 'AnnotationComment.created'
12 db.add_column('pdfannotator_annotationcomment', 'created',
13 self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, default=datetime.datetime(2018, 11, 16, 0, 0), blank=True),
14 keep_default=False)
15
16 # Adding field 'Annotation.order'
17 db.add_column('pdfannotator_annotation', 'order',
18 self.gf('django.db.models.fields.CharField')(default='1', max_length=10),
19 keep_default=False)
20
21
22 def backwards(self, orm):
23 # Deleting field 'AnnotationComment.created'
24 db.delete_column('pdfannotator_annotationcomment', 'created')
25
26 # Deleting field 'Annotation.order'
27 db.delete_column('pdfannotator_annotation', 'order')
28
29
30 models = {
31 'pdfannotator.annotation': {
32 'Meta': {'object_name': 'Annotation'},
33 'annotation_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
34 'content': ('django.db.models.fields.TextField', [], {}),
35 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36 'order': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
37 'page': ('django.db.models.fields.IntegerField', [], {}),
38 'uuid': ('django.db.models.fields.CharField', [], {'max_length': '50'})
39 },
40 'pdfannotator.annotationcomment': {
41 'Meta': {'object_name': 'AnnotationComment'},
42 'annotation_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
43 'content': ('django.db.models.fields.TextField', [], {}),
44 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
45 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46 'uuid': ('django.db.models.fields.CharField', [], {'max_length': '50'})
47 }
48 }
49
50 complete_apps = ['pdfannotator']