aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/migrations
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-04-27 16:41:18 +0200
committerGravatar D0rs4n <[email protected]>2021-12-18 18:02:11 +0100
commit71a5e0d854c587ca2ae70aaec80f1110ea8800e5 (patch)
treed4f9db15fd7f87106023e1248153906010943110 /pydis_site/apps/api/migrations
parentFilters: update tests to the new schema (diff)
Filters: allowed_category -> allowed_categories
Diffstat (limited to 'pydis_site/apps/api/migrations')
-rw-r--r--pydis_site/apps/api/migrations/0070_new_filter_schema.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/api/migrations/0070_new_filter_schema.py b/pydis_site/apps/api/migrations/0070_new_filter_schema.py
index de75e677..eb55e329 100644
--- a/pydis_site/apps/api/migrations/0070_new_filter_schema.py
+++ b/pydis_site/apps/api/migrations/0070_new_filter_schema.py
@@ -33,7 +33,7 @@ def forward(apps: Apps, schema_editor: BaseDatabaseSchemaEditor) -> None:
disallowed_channels=[],
disallowed_categories=[],
allowed_channels=[],
- allowed_category=[],
+ allowed_categories=[],
default=True
)
default_range.save()
@@ -85,7 +85,7 @@ class Migration(migrations.Migration):
('disallowed_channels', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(), size=None)),
('disallowed_categories', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(), size=None)),
('allowed_channels', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(), size=None)),
- ('allowed_category', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(), size=None)),
+ ('allowed_categories', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(), size=None)),
('default', models.BooleanField()),
],
),