forked from mirrors/bookwyrm
43 lines
1.6 KiB
Python
43 lines
1.6 KiB
Python
|
# Generated by Django 3.0.3 on 2020-03-30 14:56
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('fedireads', '0025_auto_20200330_0037'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Boost',
|
||
|
fields=[
|
||
|
('status_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='fedireads.Status')),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
bases=('fedireads.status',),
|
||
|
),
|
||
|
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'), ('TAG', 'Tag'), ('FOLLOW', 'Follow'), ('FOLLOW_REQUEST', 'Follow Request'), ('BOOST', 'Boost')], max_length=255),
|
||
|
),
|
||
|
migrations.AddConstraint(
|
||
|
model_name='notification',
|
||
|
constraint=models.CheckConstraint(check=models.Q(notification_type__in=['FAVORITE', 'REPLY', 'TAG', 'FOLLOW', 'FOLLOW_REQUEST', 'BOOST']), name='notification_type_valid'),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='boost',
|
||
|
name='boosted_status',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='boosters', to='fedireads.Status'),
|
||
|
),
|
||
|
]
|