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 # Removing index on 'Question', fields ['question']
12 db.delete_index('questions_question', ['question'])
14 # Removing index on 'Question', fields ['edited_question']
15 db.delete_index('questions_question', ['edited_question'])
18 def backwards(self, orm):
19 # Adding index on 'Question', fields ['edited_question']
20 db.create_index('questions_question', ['edited_question'])
22 # Adding index on 'Question', fields ['question']
23 db.create_index('questions_question', ['question'])
27 'contenttypes.contenttype': {
28 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
29 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
30 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
31 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
32 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
34 'questions.question': {
35 'Meta': {'ordering': "['-created_at']", 'object_name': 'Question'},
36 '_answer_rendered': ('django.db.models.fields.TextField', [], {}),
37 'answer': ('markupfield.fields.MarkupField', [], {'rendered_field': 'True', 'blank': 'True'}),
38 'answer_markup_type': ('django.db.models.fields.CharField', [], {'default': "'textile_pl'", 'max_length': '30', 'blank': 'True'}),
39 'answered': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
40 'answered_at': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
41 'answered_by': ('django.db.models.fields.CharField', [], {'max_length': '127', 'null': 'True', 'blank': 'True'}),
42 'approved': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
43 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
44 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
45 'edited_question': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
46 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
47 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
48 'published': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
49 'published_at': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
50 'question': ('django.db.models.fields.TextField', [], {})
53 'Meta': {'object_name': 'Tag'},
54 'category': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'tags'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['questions.TagCategory']"}),
55 'click_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
56 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
57 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
58 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '100'})
60 'questions.tagcategory': {
61 'Meta': {'object_name': 'TagCategory'},
62 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
63 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
64 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '100'})
66 'questions.tagitem': {
67 'Meta': {'object_name': 'TagItem'},
68 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions_tagitem_tagged_items'", 'to': "orm['contenttypes.ContentType']"}),
69 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
70 'object_id': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
71 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'items'", 'to': "orm['questions.Tag']"})
75 complete_apps = ['questions']