diff options
Diffstat (limited to 'pyblackbird_cc/resources/migrations')
3 files changed, 88 insertions, 0 deletions
diff --git a/pyblackbird_cc/resources/migrations/0014_remove_resource_additional_resource_category_and_more.py b/pyblackbird_cc/resources/migrations/0014_remove_resource_additional_resource_category_and_more.py new file mode 100644 index 0000000..7573bf2 --- /dev/null +++ b/pyblackbird_cc/resources/migrations/0014_remove_resource_additional_resource_category_and_more.py @@ -0,0 +1,27 @@ +# Generated by Django 5.0.4 on 2024-07-29 14:52 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("resources", "0013_resourcecategory_badge_foreground_colour"), + ] + + operations = [ + migrations.RemoveField( + model_name="resource", + name="additional_resource_category", + ), + migrations.AddField( + model_name="resource", + name="additional_resource_category", + field=models.ManyToManyField( + blank=True, + null=True, + related_name="additional_resource_category", + to="resources.resourcecategory", + ), + ), + ] diff --git a/pyblackbird_cc/resources/migrations/0015_resourcesubcategory.py b/pyblackbird_cc/resources/migrations/0015_resourcesubcategory.py new file mode 100644 index 0000000..3eaada4 --- /dev/null +++ b/pyblackbird_cc/resources/migrations/0015_resourcesubcategory.py @@ -0,0 +1,30 @@ +# Generated by Django 5.0.4 on 2024-07-29 14:55 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("resources", "0014_remove_resource_additional_resource_category_and_more"), + ] + + operations = [ + migrations.CreateModel( + name="ResourceSubcategory", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ("name", models.CharField(max_length=255)), + ("created_at", models.DateTimeField(auto_now_add=True)), + ("updated_at", models.DateTimeField(auto_now=True)), + ], + ), + ] diff --git a/pyblackbird_cc/resources/migrations/0016_alter_resourcesubcategory_options_and_more.py b/pyblackbird_cc/resources/migrations/0016_alter_resourcesubcategory_options_and_more.py new file mode 100644 index 0000000..77a3f27 --- /dev/null +++ b/pyblackbird_cc/resources/migrations/0016_alter_resourcesubcategory_options_and_more.py @@ -0,0 +1,31 @@ +# Generated by Django 5.0.4 on 2024-07-29 15:36 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("resources", "0015_resourcesubcategory"), + ] + + operations = [ + migrations.AlterModelOptions( + name="resourcesubcategory", + options={"verbose_name_plural": "Resource Subcategories"}, + ), + migrations.AlterModelOptions( + name="resourcetype", + options={"verbose_name_plural": "Resource Types"}, + ), + migrations.AlterField( + model_name="resource", + name="additional_resource_category", + field=models.ManyToManyField( + blank=True, + null=True, + related_name="additional_resource_category", + to="resources.resourcesubcategory", + ), + ), + ] |