0b7d7792f7febc6f0ac18cf900e8310091bfcde0
[auf_paf.git] / paf / migrations / 0004_auto__add_field_student_identifier.py
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 'Student.identifier'
12 db.add_column('paf_student', 'identifier',
13 self.gf('django.db.models.fields.CharField')(default='', max_length=9, blank=True),
14 keep_default=False)
15
16
17 def backwards(self, orm):
18 # Deleting field 'Student.identifier'
19 db.delete_column('paf_student', 'identifier')
20
21
22 models = {
23 'paf.linguisticlevel': {
24 'Meta': {'object_name': 'LinguisticLevel'},
25 'delf_dalf': ('django.db.models.fields.CharField', [], {'max_length': '2', 'blank': 'True'}),
26 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27 'other': ('django.db.models.fields.CharField', [], {'max_length': '1', 'blank': 'True'}),
28 'student': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['paf.Student']", 'unique': 'True'}),
29 'year_delf_dalf': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
30 'year_other': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
31 },
32 'paf.student': {
33 'Meta': {'object_name': 'Student'},
34 'dob': ('django.db.models.fields.DateField', [], {}),
35 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
36 'firstname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
37 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38 'identifier': ('django.db.models.fields.CharField', [], {'max_length': '9', 'blank': 'True'}),
39 'lastname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
40 'nationality': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
41 'parent_address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
42 'parent_tel': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
43 'sex': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
44 'tel': ('django.db.models.fields.CharField', [], {'max_length': '20'})
45 }
46 }
47
48 complete_apps = ['paf']