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 'Chunk'
12 db.create_table('chunks_chunk', (
13 ('key', self.gf('django.db.models.fields.CharField')(max_length=255, primary_key=True)),
14 ('description', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
15 ('content_pl', self.gf('markupfield.fields.MarkupField')(rendered_field=True, blank=True)),
16 ('content_en', self.gf('markupfield.fields.MarkupField')(rendered_field=True, blank=True)),
17 ('content_pl_markup_type', self.gf('django.db.models.fields.CharField')(default=None, max_length=30, blank=True)),
18 ('content_en_markup_type', self.gf('django.db.models.fields.CharField')(default=None, max_length=30, blank=True)),
19 ('_content_pl_rendered', self.gf('django.db.models.fields.TextField')()),
20 ('_content_en_rendered', self.gf('django.db.models.fields.TextField')()),
22 db.send_create_signal('chunks', ['Chunk'])
24 # Adding model 'Attachment'
25 db.create_table('chunks_attachment', (
26 ('key', self.gf('django.db.models.fields.CharField')(max_length=255, primary_key=True)),
27 ('attachment', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
29 db.send_create_signal('chunks', ['Attachment'])
32 def backwards(self, orm):
33 # Deleting model 'Chunk'
34 db.delete_table('chunks_chunk')
36 # Deleting model 'Attachment'
37 db.delete_table('chunks_attachment')
41 'chunks.attachment': {
42 'Meta': {'ordering': "('key',)", 'object_name': 'Attachment'},
43 'attachment': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
44 'key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'primary_key': 'True'})
47 'Meta': {'ordering': "('key',)", 'object_name': 'Chunk'},
48 '_content_en_rendered': ('django.db.models.fields.TextField', [], {}),
49 '_content_pl_rendered': ('django.db.models.fields.TextField', [], {}),
50 'content_en': ('markupfield.fields.MarkupField', [], {'rendered_field': 'True', 'blank': 'True'}),
51 'content_en_markup_type': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'blank': 'True'}),
52 'content_pl': ('markupfield.fields.MarkupField', [], {'rendered_field': 'True', 'blank': 'True'}),
53 'content_pl_markup_type': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'blank': 'True'}),
54 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
55 'key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'primary_key': 'True'})
59 complete_apps = ['chunks']