From ec5d376967492f3a258b5c2c70dee2a413bafac0 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Tue, 9 May 2017 13:03:09 +0200 Subject: [PATCH] chunk migrations --- chunks/migrations/0001_initial.py | 41 +++++++++++++++++++++++++++++++ chunks/migrations/__init__.py | 0 2 files changed, 41 insertions(+) create mode 100644 chunks/migrations/0001_initial.py create mode 100644 chunks/migrations/__init__.py diff --git a/chunks/migrations/0001_initial.py b/chunks/migrations/0001_initial.py new file mode 100644 index 0000000..30e1ffa --- /dev/null +++ b/chunks/migrations/0001_initial.py @@ -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 index 0000000..e69de29 -- 2.20.1