mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-14 12:51:08 +00:00
43 lines
1.6 KiB
Python
43 lines
1.6 KiB
Python
# Generated by Django 3.0.3 on 2020-04-22 12:49
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('fedireads', '0032_auto_20200421_1347'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RemoveConstraint(
|
|
model_name='notification',
|
|
name='notification_type_valid',
|
|
),
|
|
migrations.AddField(
|
|
model_name='importitem',
|
|
name='fail_reason',
|
|
field=models.TextField(null=True),
|
|
),
|
|
migrations.AddField(
|
|
model_name='importitem',
|
|
name='index',
|
|
field=models.IntegerField(default=1),
|
|
preserve_default=False,
|
|
),
|
|
migrations.AddField(
|
|
model_name='notification',
|
|
name='related_import',
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='fedireads.ImportJob'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='notification',
|
|
name='notification_type',
|
|
field=models.CharField(choices=[('FAVORITE', 'Favorite'), ('REPLY', 'Reply'), ('TAG', 'Tag'), ('FOLLOW', 'Follow'), ('FOLLOW_REQUEST', 'Follow Request'), ('BOOST', 'Boost'), ('IMPORT', 'Import')], max_length=255),
|
|
),
|
|
migrations.AddConstraint(
|
|
model_name='notification',
|
|
constraint=models.CheckConstraint(check=models.Q(notification_type__in=['FAVORITE', 'REPLY', 'TAG', 'FOLLOW', 'FOLLOW_REQUEST', 'BOOST', 'IMPORT']), name='notification_type_valid'),
|
|
),
|
|
]
|