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 model 'Question'
12 db.create_table('questions_question', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('email', self.gf('django.db.models.fields.EmailField')(max_length=75, null=True, blank=True)),
15 ('question', self.gf('django.db.models.fields.TextField')(db_index=True)),
16 ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
17 ('approved', self.gf('django.db.models.fields.BooleanField')(default=False)),
18 ('edited_question', self.gf('django.db.models.fields.TextField')(db_index=True, null=True, blank=True)),
19 ('answer', self.gf('markupfield.fields.MarkupField')(rendered_field=True, blank=True)),
20 ('answered', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True)),
21 ('answer_markup_type', self.gf('django.db.models.fields.CharField')(default='textile_pl', max_length=30, blank=True)),
22 ('answered_at', self.gf('django.db.models.fields.DateTimeField')(db_index=True, null=True, blank=True)),
23 ('_answer_rendered', self.gf('django.db.models.fields.TextField')()),
24 ('published', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True)),
25 ('published_at', self.gf('django.db.models.fields.DateTimeField')(db_index=True, null=True, blank=True)),
27 db.send_create_signal('questions', ['Question'])
30 def backwards(self, orm):
31 # Deleting model 'Question'
32 db.delete_table('questions_question')
36 'questions.question': {
37 'Meta': {'ordering': "['-created_at']", 'object_name': 'Question'},
38 '_answer_rendered': ('django.db.models.fields.TextField', [], {}),
39 'answer': ('markupfield.fields.MarkupField', [], {'rendered_field': 'True', 'blank': 'True'}),
40 'answer_markup_type': ('django.db.models.fields.CharField', [], {'default': "'textile_pl'", 'max_length': '30', 'blank': 'True'}),
41 'answered': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
42 'answered_at': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
43 'approved': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
44 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
45 'edited_question': ('django.db.models.fields.TextField', [], {'db_index': 'True', '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', [], {'db_index': 'True'})
54 complete_apps = ['questions']