d62e37aabb558e953bd3e33773318afa03a30d88
[edumed.git] /
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 'CompetenceLevel.description_pl'
12         db.add_column(u'curriculum_competencelevel', 'description_pl',
13                       self.gf('django.db.models.fields.TextField')(null=True),
14                       keep_default=False)
15
16         # Adding field 'CompetenceLevel.description_en'
17         db.add_column(u'curriculum_competencelevel', 'description_en',
18                       self.gf('django.db.models.fields.TextField')(null=True),
19                       keep_default=False)
20
21         # Adding field 'Section.name_pl'
22         db.add_column(u'curriculum_section', 'name_pl',
23                       self.gf('django.db.models.fields.CharField')(max_length=255, null=True),
24                       keep_default=False)
25
26         # Adding field 'Section.name_en'
27         db.add_column(u'curriculum_section', 'name_en',
28                       self.gf('django.db.models.fields.CharField')(max_length=255, null=True),
29                       keep_default=False)
30
31         # Adding field 'Competence.name_pl'
32         db.add_column(u'curriculum_competence', 'name_pl',
33                       self.gf('django.db.models.fields.CharField')(max_length=255, null=True),
34                       keep_default=False)
35
36         # Adding field 'Competence.name_en'
37         db.add_column(u'curriculum_competence', 'name_en',
38                       self.gf('django.db.models.fields.CharField')(max_length=255, null=True),
39                       keep_default=False)
40
41         # Adding field 'Level.name_pl'
42         db.add_column(u'curriculum_level', 'name_pl',
43                       self.gf('django.db.models.fields.CharField')(max_length=255, null=True),
44                       keep_default=False)
45
46         # Adding field 'Level.name_en'
47         db.add_column(u'curriculum_level', 'name_en',
48                       self.gf('django.db.models.fields.CharField')(max_length=255, null=True),
49                       keep_default=False)
50
51         # Adding field 'Level.group_pl'
52         db.add_column(u'curriculum_level', 'group_pl',
53                       self.gf('django.db.models.fields.CharField')(max_length=255, null=True),
54                       keep_default=False)
55
56         # Adding field 'Level.group_en'
57         db.add_column(u'curriculum_level', 'group_en',
58                       self.gf('django.db.models.fields.CharField')(max_length=255, null=True),
59                       keep_default=False)
60
61
62     def backwards(self, orm):
63         # Deleting field 'CompetenceLevel.description_pl'
64         db.delete_column(u'curriculum_competencelevel', 'description_pl')
65
66         # Deleting field 'CompetenceLevel.description_en'
67         db.delete_column(u'curriculum_competencelevel', 'description_en')
68
69         # Deleting field 'Section.name_pl'
70         db.delete_column(u'curriculum_section', 'name_pl')
71
72         # Deleting field 'Section.name_en'
73         db.delete_column(u'curriculum_section', 'name_en')
74
75         # Deleting field 'Competence.name_pl'
76         db.delete_column(u'curriculum_competence', 'name_pl')
77
78         # Deleting field 'Competence.name_en'
79         db.delete_column(u'curriculum_competence', 'name_en')
80
81         # Deleting field 'Level.name_pl'
82         db.delete_column(u'curriculum_level', 'name_pl')
83
84         # Deleting field 'Level.name_en'
85         db.delete_column(u'curriculum_level', 'name_en')
86
87         # Deleting field 'Level.group_pl'
88         db.delete_column(u'curriculum_level', 'group_pl')
89
90         # Deleting field 'Level.group_en'
91         db.delete_column(u'curriculum_level', 'group_en')
92
93
94     models = {
95         u'curriculum.competence': {
96             'Meta': {'ordering': "['section', 'order']", 'object_name': 'Competence'},
97             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
98             'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
99             'name_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
100             'name_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
101             'order': ('django.db.models.fields.IntegerField', [], {}),
102             'section': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Section']"}),
103             'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
104         },
105         u'curriculum.competencelevel': {
106             'Meta': {'ordering': "['competence', 'level']", 'object_name': 'CompetenceLevel'},
107             'competence': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Competence']"}),
108             'description': ('django.db.models.fields.TextField', [], {}),
109             'description_en': ('django.db.models.fields.TextField', [], {'null': 'True'}),
110             'description_pl': ('django.db.models.fields.TextField', [], {'null': 'True'}),
111             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
112             'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Level']"})
113         },
114         u'curriculum.curriculum': {
115             'Meta': {'object_name': 'Curriculum'},
116             'course': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.CurriculumCourse']"}),
117             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
118             'identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
119             'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.CurriculumLevel']"}),
120             'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
121             'type': ('django.db.models.fields.CharField', [], {'max_length': '16'})
122         },
123         u'curriculum.curriculumcourse': {
124             'Meta': {'ordering': "['slug']", 'object_name': 'CurriculumCourse'},
125             'accusative': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
126             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
127             'slug': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
128             'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
129         },
130         u'curriculum.curriculumlevel': {
131             'Meta': {'object_name': 'CurriculumLevel'},
132             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
133             'title': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_index': 'True'})
134         },
135         u'curriculum.level': {
136             'Meta': {'ordering': "['order']", 'object_name': 'Level'},
137             'group': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
138             'group_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
139             'group_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
140             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
141             'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
142             'name_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
143             'name_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
144             'order': ('django.db.models.fields.IntegerField', [], {}),
145             'slug': ('django.db.models.fields.CharField', [], {'max_length': '255'})
146         },
147         u'curriculum.section': {
148             'Meta': {'ordering': "['order']", 'object_name': 'Section'},
149             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
150             'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
151             'name_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
152             'name_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
153             'order': ('django.db.models.fields.IntegerField', [], {}),
154             'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
155         }
156     }
157
158     complete_apps = ['curriculum']