Nettoyage, 1ère passe…
[auf_paf.git] / paf / migrations / 0013_auto__add_field_currentacademic_entry_year__add_field_currentacademic_.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 'CurrentAcademic.entry_year'
12 db.add_column('paf_currentacademic', 'entry_year',
13 self.gf('django.db.models.fields.PositiveIntegerField')(default=2012),
14 keep_default=False)
15
16 # Adding field 'CurrentAcademic.end_year'
17 db.add_column('paf_currentacademic', 'end_year',
18 self.gf('django.db.models.fields.PositiveIntegerField')(null=True, blank=True),
19 keep_default=False)
20
21 # Adding field 'CurrentAcademic.certified'
22 db.add_column('paf_currentacademic', 'certified',
23 self.gf('django.db.models.fields.NullBooleanField')(null=True, blank=True),
24 keep_default=False)
25
26
27 def backwards(self, orm):
28 # Deleting field 'CurrentAcademic.entry_year'
29 db.delete_column('paf_currentacademic', 'entry_year')
30
31 # Deleting field 'CurrentAcademic.end_year'
32 db.delete_column('paf_currentacademic', 'end_year')
33
34 # Deleting field 'CurrentAcademic.certified'
35 db.delete_column('paf_currentacademic', 'certified')
36
37
38 models = {
39 'paf.currentacademic': {
40 'Meta': {'object_name': 'CurrentAcademic'},
41 'certified': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
42 'end_year': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
43 'entry_year': ('django.db.models.fields.PositiveIntegerField', [], {}),
44 'faculty': ('smart_selects.db_fields.ChainedForeignKey', [], {'to': "orm['paf.Faculty']"}),
45 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['paf.Level']"}),
47 'specialty': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
48 'student': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['paf.Student']", 'unique': 'True'}),
49 'university': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['paf.University']"})
50 },
51 'paf.faculty': {
52 'Meta': {'object_name': 'Faculty'},
53 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
55 'university': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['paf.University']"})
56 },
57 'paf.level': {
58 'Meta': {'object_name': 'Level'},
59 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
61 },
62 'paf.linguisticlevel': {
63 'Meta': {'object_name': 'LinguisticLevel'},
64 'delf_dalf': ('django.db.models.fields.CharField', [], {'max_length': '2', 'blank': 'True'}),
65 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
66 'other': ('django.db.models.fields.CharField', [], {'max_length': '1', 'blank': 'True'}),
67 'student': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['paf.Student']", 'unique': 'True'}),
68 'year_delf_dalf': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
69 'year_other': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
70 },
71 'paf.student': {
72 'Meta': {'object_name': 'Student'},
73 'dob': ('django.db.models.fields.DateField', [], {}),
74 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
75 'firstname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
76 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
77 'identifier': ('django.db.models.fields.CharField', [], {'max_length': '9', 'blank': 'True'}),
78 'lastname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
79 'nationality': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
80 'parent_address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
81 'parent_tel': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
82 'sex': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
83 'tel': ('django.db.models.fields.CharField', [], {'max_length': '20'})
84 },
85 'paf.university': {
86 'Meta': {'object_name': 'University'},
87 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
88 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
89 }
90 }
91
92 complete_apps = ['paf']