forked from mirrors/bookwyrm
26 lines
1,023 B
Python
26 lines
1,023 B
Python
# Generated by Django 3.0.7 on 2020-11-01 17:58
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('bookwyrm', '0062_auto_20201031_1936'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RemoveConstraint(
|
|
model_name='notification',
|
|
name='notification_type_valid',
|
|
),
|
|
migrations.AlterField(
|
|
model_name='notification',
|
|
name='notification_type',
|
|
field=models.CharField(choices=[('FAVORITE', 'Favorite'), ('REPLY', 'Reply'), ('MENTION', 'Mention'), ('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', 'MENTION', 'TAG', 'FOLLOW', 'FOLLOW_REQUEST', 'BOOST', 'IMPORT']), name='notification_type_valid'),
|
|
),
|
|
]
|