| 1 |
from django.db import migrations, models |
| 2 |
|
| 3 |
|
| 4 |
class Migration(migrations.Migration): |
| 5 |
replaces = [ |
| 6 |
("migrations2", "0001_initial"), |
| 7 |
("migrations2", "0002_second"), |
| 8 |
] |
| 9 |
|
| 10 |
operations = [ |
| 11 |
migrations.CreateModel( |
| 12 |
"OtherAuthor", |
| 13 |
[ |
| 14 |
("id", models.AutoField(primary_key=True)), |
| 15 |
("name", models.CharField(max_length=255)), |
| 16 |
], |
| 17 |
), |
| 18 |
migrations.CreateModel( |
| 19 |
"OtherBook", |
| 20 |
[ |
| 21 |
("id", models.AutoField(primary_key=True)), |
| 22 |
( |
| 23 |
"author", |
| 24 |
models.ForeignKey( |
| 25 |
"migrations2.OtherAuthor", models.SET_NULL, null=True |
| 26 |
), |
| 27 |
), |
| 28 |
], |
| 29 |
), |
| 30 |
] |