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 # Deleting field 'CompetenceLevel.description'
12 db.delete_column(u'curriculum_competencelevel', 'description')
14 # Deleting field 'Section.name'
15 db.delete_column(u'curriculum_section', 'name')
17 # Deleting field 'Competence.name'
18 db.delete_column(u'curriculum_competence', 'name')
20 # Deleting field 'Level.group'
21 db.delete_column(u'curriculum_level', 'group')
23 # Deleting field 'Level.name'
24 db.delete_column(u'curriculum_level', 'name')
27 def backwards(self, orm):
29 # User chose to not deal with backwards NULL issues for 'CompetenceLevel.description'
30 raise RuntimeError("Cannot reverse this migration. 'CompetenceLevel.description' and its values cannot be restored.")
32 # User chose to not deal with backwards NULL issues for 'Section.name'
33 raise RuntimeError("Cannot reverse this migration. 'Section.name' and its values cannot be restored.")
35 # User chose to not deal with backwards NULL issues for 'Competence.name'
36 raise RuntimeError("Cannot reverse this migration. 'Competence.name' and its values cannot be restored.")
38 # User chose to not deal with backwards NULL issues for 'Level.group'
39 raise RuntimeError("Cannot reverse this migration. 'Level.group' and its values cannot be restored.")
41 # User chose to not deal with backwards NULL issues for 'Level.name'
42 raise RuntimeError("Cannot reverse this migration. 'Level.name' and its values cannot be restored.")
45 u'curriculum.competence': {
46 'Meta': {'ordering': "['section', 'order']", 'object_name': 'Competence'},
47 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
48 'name_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
49 'name_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
50 'order': ('django.db.models.fields.IntegerField', [], {}),
51 'section': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Section']"}),
52 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
54 u'curriculum.competencelevel': {
55 'Meta': {'ordering': "['competence', 'level']", 'object_name': 'CompetenceLevel'},
56 'competence': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Competence']"}),
57 'description_en': ('django.db.models.fields.TextField', [], {'null': 'True'}),
58 'description_pl': ('django.db.models.fields.TextField', [], {'null': 'True'}),
59 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.Level']"})
62 u'curriculum.curriculum': {
63 'Meta': {'object_name': 'Curriculum'},
64 'course': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.CurriculumCourse']"}),
65 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
66 'identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
67 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['curriculum.CurriculumLevel']"}),
68 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
69 'type': ('django.db.models.fields.CharField', [], {'max_length': '16'})
71 u'curriculum.curriculumcourse': {
72 'Meta': {'ordering': "['slug']", 'object_name': 'CurriculumCourse'},
73 'accusative': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
74 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
75 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
76 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
78 u'curriculum.curriculumlevel': {
79 'Meta': {'object_name': 'CurriculumLevel'},
80 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
81 'title': ('django.db.models.fields.CharField', [], {'max_length': '16', 'db_index': 'True'})
83 u'curriculum.level': {
84 'Meta': {'ordering': "['order']", 'object_name': 'Level'},
85 'group_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
86 'group_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
87 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
88 'name_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
89 'name_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
90 'order': ('django.db.models.fields.IntegerField', [], {}),
91 'slug': ('django.db.models.fields.CharField', [], {'max_length': '255'})
93 u'curriculum.section': {
94 'Meta': {'ordering': "['order']", 'object_name': 'Section'},
95 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
96 'name_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
97 'name_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
98 'order': ('django.db.models.fields.IntegerField', [], {}),
99 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
103 complete_apps = ['curriculum']