Skip to content

Commit 084357d

Browse files
committed
Remove embed validators from old migrations
Since the util file has been deleted, these migrations were referencing a missing file
1 parent d4f717e commit 084357d

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

pydis_site/apps/api/migrations/0019_deletedmessage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Migration(migrations.Migration):
1818
('id', models.BigIntegerField(help_text='The message ID as taken from Discord.', primary_key=True, serialize=False, validators=[django.core.validators.MinValueValidator(limit_value=0, message='Message IDs cannot be negative.')])),
1919
('channel_id', models.BigIntegerField(help_text='The channel ID that this message was sent in, taken from Discord.', validators=[django.core.validators.MinValueValidator(limit_value=0, message='Channel IDs cannot be negative.')])),
2020
('content', models.CharField(help_text='The content of this message, taken from Discord.', max_length=2000)),
21-
('embeds', django.contrib.postgres.fields.ArrayField(base_field=django.contrib.postgres.fields.jsonb.JSONField(validators=[pydis_site.apps.api.models.utils.validate_embed]), help_text='Embeds attached to this message.', size=None)),
21+
('embeds', django.contrib.postgres.fields.ArrayField(base_field=django.contrib.postgres.fields.jsonb.JSONField(validators=[]), help_text='Embeds attached to this message.', size=None)),
2222
('author', models.ForeignKey(help_text='The author of this message.', on_delete=django.db.models.deletion.CASCADE, to='api.User')),
2323
('deletion_context', models.ForeignKey(help_text='The deletion context this message is part of.', on_delete=django.db.models.deletion.CASCADE, to='api.MessageDeletionContext')),
2424
],

pydis_site/apps/api/migrations/0051_allow_blank_message_embeds.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import django.contrib.postgres.fields
44
import django.contrib.postgres.fields.jsonb
55
from django.db import migrations
6-
import pydis_site.apps.api.models.utils
76

87

98
class Migration(migrations.Migration):
@@ -16,6 +15,6 @@ class Migration(migrations.Migration):
1615
migrations.AlterField(
1716
model_name='deletedmessage',
1817
name='embeds',
19-
field=django.contrib.postgres.fields.ArrayField(base_field=django.contrib.postgres.fields.jsonb.JSONField(validators=[pydis_site.apps.api.models.utils.validate_embed]), blank=True, help_text='Embeds attached to this message.', size=None),
18+
field=django.contrib.postgres.fields.ArrayField(base_field=django.contrib.postgres.fields.jsonb.JSONField(validators=[]), blank=True, help_text='Embeds attached to this message.', size=None),
2019
),
2120
]

pydis_site/apps/api/migrations/0077_use_generic_jsonfield.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import django.contrib.postgres.fields
44
from django.db import migrations, models
5-
import pydis_site.apps.api.models.utils
65

76

87
class Migration(migrations.Migration):
@@ -20,6 +19,6 @@ class Migration(migrations.Migration):
2019
migrations.AlterField(
2120
model_name='deletedmessage',
2221
name='embeds',
23-
field=django.contrib.postgres.fields.ArrayField(base_field=models.JSONField(validators=[pydis_site.apps.api.models.utils.validate_embed]), blank=True, help_text='Embeds attached to this message.', size=None),
22+
field=django.contrib.postgres.fields.ArrayField(base_field=models.JSONField(validators=[]), blank=True, help_text='Embeds attached to this message.', size=None),
2423
),
2524
]

0 commit comments

Comments
 (0)