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):
12 # Changing field 'CompetenceLevel.description_en'
13 db.alter_column(u'curriculum_competencelevel', 'description_en', self.gf('django.db.models.fields.TextField')())
15 # Changing field 'CompetenceLevel.description_pl'
16 db.alter_column(u'curriculum_competencelevel', 'description_pl', self.gf('django.db.models.fields.TextField')())
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))
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))
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))
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))
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))
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))
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))
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))
42 def backwards(self, orm):
44 # Changing field 'CompetenceLevel.description_en'
45 db.alter_column(u'curriculum_competencelevel', 'description_en', self.gf('django.db.models.fields.TextField')(null=True))
47 # Changing field 'CompetenceLevel.description_pl'
48 db.alter_column(u'curriculum_competencelevel', 'description_pl', self.gf('django.db.models.fields.TextField')(null=True))
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))
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))
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))
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))
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))
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))
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))
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))
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'})
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']"})
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'})
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'})
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'})
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'})
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'})
133 complete_apps = ['curriculum']