1 # -*- coding: utf-8 -*-
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
8 class Migration(SchemaMigration):
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
62 def backwards(self, orm):
63 # Deleting field 'CompetenceLevel.description_pl'
64 db.delete_column(u'curriculum_competencelevel', 'description_pl')
66 # Deleting field 'CompetenceLevel.description_en'
67 db.delete_column(u'curriculum_competencelevel', 'description_en')
69 # Deleting field 'Section.name_pl'
70 db.delete_column(u'curriculum_section', 'name_pl')
72 # Deleting field 'Section.name_en'
73 db.delete_column(u'curriculum_section', 'name_en')
75 # Deleting field 'Competence.name_pl'
76 db.delete_column(u'curriculum_competence', 'name_pl')
78 # Deleting field 'Competence.name_en'
79 db.delete_column(u'curriculum_competence', 'name_en')
81 # Deleting field 'Level.name_pl'
82 db.delete_column(u'curriculum_level', 'name_pl')
84 # Deleting field 'Level.name_en'
85 db.delete_column(u'curriculum_level', 'name_en')
87 # Deleting field 'Level.group_pl'
88 db.delete_column(u'curriculum_level', 'group_pl')
90 # Deleting field 'Level.group_en'
91 db.delete_column(u'curriculum_level', 'group_en')
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'})
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']"})
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'})
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'})
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'})
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'})
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'})
158 complete_apps = ['curriculum']