Added a migration with "python manage.py sqlmigrate animals 0001".
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 8 Apr 2015 21:05:55 +0000 (23:05 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 8 Apr 2015 21:05:55 +0000 (23:05 +0200)
animals/migrations/0001_initial.py [new file with mode: 0644]

diff --git a/animals/migrations/0001_initial.py b/animals/migrations/0001_initial.py
new file mode 100644 (file)
index 0000000..c4a240d
--- /dev/null
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+    ]
+
+    operations = [
+        migrations.CreateModel(
+            name='Animal',
+            fields=[
+                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+                ('name_german', models.CharField(max_length=255)),
+                ('size_cm', models.IntegerField()),
+                ('edible', models.BooleanField()),
+            ],
+        ),
+    ]