forked from mirrors/bookwyrm
c7883cd615
To get the app working again I ran resetdb, let it crash in initdb, then ran the migration, then re-ran initdb
82 lines
2.8 KiB
Python
82 lines
2.8 KiB
Python
# Generated by Django 3.0.3 on 2020-03-30 22:32
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import bookwyrm.utils.fields
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('bookwyrm', '0026_auto_20200330_1456'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RemoveField(
|
|
model_name='book',
|
|
name='language',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='book',
|
|
name='parent_work',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='book',
|
|
name='shelves',
|
|
),
|
|
migrations.AddField(
|
|
model_name='book',
|
|
name='languages',
|
|
field=bookwyrm.utils.fields.ArrayField(base_field=models.CharField(max_length=255), blank=True, default=list, size=None),
|
|
),
|
|
migrations.AddField(
|
|
model_name='edition',
|
|
name='default',
|
|
field=models.BooleanField(default=False),
|
|
),
|
|
migrations.AddField(
|
|
model_name='edition',
|
|
name='parent_work',
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='bookwyrm.Work'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='edition',
|
|
name='shelves',
|
|
field=models.ManyToManyField(through='bookwyrm.ShelfBook', to='bookwyrm.Shelf'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='comment',
|
|
name='book',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='bookwyrm.Edition'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='notification',
|
|
name='related_book',
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='bookwyrm.Edition'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='review',
|
|
name='book',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='bookwyrm.Edition'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='shelf',
|
|
name='books',
|
|
field=models.ManyToManyField(through='bookwyrm.ShelfBook', to='bookwyrm.Edition'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='shelfbook',
|
|
name='book',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='bookwyrm.Edition'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='status',
|
|
name='mention_books',
|
|
field=models.ManyToManyField(related_name='mention_book', to='bookwyrm.Edition'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='tag',
|
|
name='book',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='bookwyrm.Edition'),
|
|
),
|
|
]
|