chunk migrations
authorJan Szejko <janek37@gmail.com>
Tue, 9 May 2017 11:03:09 +0000 (13:03 +0200)
committerJan Szejko <janek37@gmail.com>
Tue, 9 May 2017 11:03:09 +0000 (13:03 +0200)
chunks/migrations/0001_initial.py [new file with mode: 0644]
chunks/migrations/__init__.py [new file with mode: 0644]

diff --git a/chunks/migrations/0001_initial.py b/chunks/migrations/0001_initial.py
new file mode 100644 (file)
index 0000000..30e1ffa
--- /dev/null
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.10.6 on 2017-05-09 11:02
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    initial = True
+
+    dependencies = [
+    ]
+
+    operations = [
+        migrations.CreateModel(
+            name='Attachment',
+            fields=[
+                ('key', models.CharField(help_text='A unique name for this attachment', max_length=255, primary_key=True, serialize=False, verbose_name='key')),
+                ('attachment', models.FileField(upload_to=b'chunks/attachment')),
+            ],
+            options={
+                'ordering': ('key',),
+                'verbose_name': 'attachment',
+                'verbose_name_plural': 'attachments',
+            },
+        ),
+        migrations.CreateModel(
+            name='Chunk',
+            fields=[
+                ('key', models.CharField(help_text='A unique name for this chunk of content', max_length=255, primary_key=True, serialize=False, verbose_name='key')),
+                ('description', models.CharField(blank=True, max_length=255, verbose_name='description')),
+                ('content', models.TextField(blank=True, verbose_name='content')),
+            ],
+            options={
+                'ordering': ('key',),
+                'verbose_name': 'chunk',
+                'verbose_name_plural': 'chunks',
+            },
+        ),
+    ]
diff --git a/chunks/migrations/__init__.py b/chunks/migrations/__init__.py
new file mode 100644 (file)
index 0000000..e69de29