2014-03-31 19:25:08 +00:00
|
|
|
# encoding: utf8
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2013-05-29 16:47:10 +00:00
|
|
|
from django.db import migrations, models
|
2013-05-10 15:00:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2014-01-08 13:00:12 +00:00
|
|
|
dependencies = [
|
|
|
|
("migrations", "0001_initial"),
|
|
|
|
]
|
2013-05-29 16:47:10 +00:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
|
|
|
|
migrations.DeleteModel("Tribble"),
|
|
|
|
|
|
|
|
migrations.RemoveField("Author", "silly_field"),
|
|
|
|
|
2013-05-30 17:08:58 +00:00
|
|
|
migrations.AddField("Author", "rating", models.IntegerField(default=0)),
|
2013-05-29 16:47:10 +00:00
|
|
|
|
|
|
|
migrations.CreateModel(
|
|
|
|
"Book",
|
|
|
|
[
|
|
|
|
("id", models.AutoField(primary_key=True)),
|
|
|
|
("author", models.ForeignKey("migrations.Author", null=True)),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
]
|