2014-05-15 19:41:55 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
2014-03-31 15:25:08 -04:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2013-05-29 17:47:10 +01:00
|
|
|
from django.db import migrations, models
|
2013-05-10 16:00:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
2013-10-10 16:42:30 -04:00
|
|
|
|
2013-05-29 17:47:10 +01:00
|
|
|
operations = [
|
|
|
|
|
|
|
|
migrations.CreateModel(
|
|
|
|
"Author",
|
|
|
|
[
|
|
|
|
("id", models.AutoField(primary_key=True)),
|
|
|
|
("name", models.CharField(max_length=255)),
|
|
|
|
("slug", models.SlugField(null=True)),
|
|
|
|
("age", models.IntegerField(default=0)),
|
2013-07-25 13:52:35 +01:00
|
|
|
("silly_field", models.BooleanField(default=False)),
|
2013-05-29 17:47:10 +01:00
|
|
|
],
|
|
|
|
),
|
|
|
|
|
|
|
|
migrations.CreateModel(
|
|
|
|
"Tribble",
|
|
|
|
[
|
|
|
|
("id", models.AutoField(primary_key=True)),
|
|
|
|
("fluffy", models.BooleanField(default=True)),
|
|
|
|
],
|
2014-06-23 13:29:27 +12:00
|
|
|
),
|
|
|
|
|
|
|
|
migrations.AlterUniqueTogether(
|
|
|
|
name='author',
|
|
|
|
unique_together=set([('name', 'slug')]),
|
|
|
|
),
|
2013-10-10 16:42:30 -04:00
|
|
|
|
2013-05-29 17:47:10 +01:00
|
|
|
]
|