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)),
|
2015-07-22 14:43:21 +00:00
|
|
|
("author", models.ForeignKey("migrations.Author", models.SET_NULL, null=True)),
|
2013-05-29 16:47:10 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
]
|