2013-05-30 00:47:10 +08:00
|
|
|
from django.db import migrations, models
|
2013-05-10 23:00:55 +08:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2014-01-08 21:00:12 +08:00
|
|
|
dependencies = [
|
|
|
|
("migrations", "0001_initial"),
|
|
|
|
]
|
2013-05-30 00:47:10 +08:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.DeleteModel("Tribble"),
|
|
|
|
migrations.RemoveField("Author", "silly_field"),
|
2013-05-31 01:08:58 +08:00
|
|
|
migrations.AddField("Author", "rating", models.IntegerField(default=0)),
|
2013-05-30 00:47:10 +08:00
|
|
|
migrations.CreateModel(
|
|
|
|
"Book",
|
|
|
|
[
|
|
|
|
("id", models.AutoField(primary_key=True)),
|
2015-07-22 22:43:21 +08:00
|
|
|
(
|
|
|
|
"author",
|
|
|
|
models.ForeignKey("migrations.Author", models.SET_NULL, null=True),
|
2022-02-04 03:24:19 +08:00
|
|
|
),
|
2013-05-30 00:47:10 +08:00
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|