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