2015-04-01 04:30:39 +08:00
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = False
|
|
|
|
|
|
|
|
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)),
|
|
|
|
("silly_field", models.BooleanField(default=False)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
"Tribble",
|
|
|
|
[
|
|
|
|
("id", models.AutoField(primary_key=True)),
|
|
|
|
("fluffy", models.BooleanField(default=True)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
|
|
|
name="author",
|
2017-05-18 21:33:40 +08:00
|
|
|
unique_together={("name", "slug")},
|
2015-04-01 04:30:39 +08:00
|
|
|
),
|
|
|
|
]
|