local changes from server
[prawokultury.git] / chunks / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 import datetime
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
6
7
8 class Migration(SchemaMigration):
9
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')()),
21         ))
22         db.send_create_signal('chunks', ['Chunk'])
23
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)),
28         ))
29         db.send_create_signal('chunks', ['Attachment'])
30
31
32     def backwards(self, orm):
33         # Deleting model 'Chunk'
34         db.delete_table('chunks_chunk')
35
36         # Deleting model 'Attachment'
37         db.delete_table('chunks_attachment')
38
39
40     models = {
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'})
45         },
46         'chunks.chunk': {
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'})
56         }
57     }
58
59     complete_apps = ['chunks']