diff options
author | Matthew Lemon <y@yulqen.org> | 2024-05-22 20:48:05 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-05-22 20:48:05 +0100 |
commit | 6985c83f55f4b60f531c77d333aeb34b0105c956 (patch) | |
tree | f85d972c2a0a3e8e65a308d327e712fe4885d2e8 /pyblackbird_cc/resources/migrations | |
parent | c7261ae893583707d1720492f67b5a3f5ffcdf72 (diff) |
Resource now has a feature slot field
Diffstat (limited to 'pyblackbird_cc/resources/migrations')
2 files changed, 54 insertions, 0 deletions
diff --git a/pyblackbird_cc/resources/migrations/0004_resource_feature_slot_1_resource_feature_slot_2_and_more.py b/pyblackbird_cc/resources/migrations/0004_resource_feature_slot_1_resource_feature_slot_2_and_more.py new file mode 100644 index 0000000..d595b62 --- /dev/null +++ b/pyblackbird_cc/resources/migrations/0004_resource_feature_slot_1_resource_feature_slot_2_and_more.py @@ -0,0 +1,28 @@ +# Generated by Django 5.0.4 on 2024-05-22 19:24 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('resources', '0003_alter_resource_description'), + ] + + operations = [ + migrations.AddField( + model_name='resource', + name='feature_slot_1', + field=models.IntegerField(choices=[(1, 1), (2, 2), (3, 3)], null=True, unique=True), + ), + migrations.AddField( + model_name='resource', + name='feature_slot_2', + field=models.IntegerField(choices=[(1, 1), (2, 2), (3, 3)], null=True, unique=True), + ), + migrations.AddField( + model_name='resource', + name='feature_slot_3', + field=models.IntegerField(choices=[(1, 1), (2, 2), (3, 3)], null=True, unique=True), + ), + ] diff --git a/pyblackbird_cc/resources/migrations/0005_rename_feature_slot_1_resource_feature_slot_and_more.py b/pyblackbird_cc/resources/migrations/0005_rename_feature_slot_1_resource_feature_slot_and_more.py new file mode 100644 index 0000000..2937c50 --- /dev/null +++ b/pyblackbird_cc/resources/migrations/0005_rename_feature_slot_1_resource_feature_slot_and_more.py @@ -0,0 +1,26 @@ +# Generated by Django 5.0.4 on 2024-05-22 19:26 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('resources', '0004_resource_feature_slot_1_resource_feature_slot_2_and_more'), + ] + + operations = [ + migrations.RenameField( + model_name='resource', + old_name='feature_slot_1', + new_name='feature_slot', + ), + migrations.RemoveField( + model_name='resource', + name='feature_slot_2', + ), + migrations.RemoveField( + model_name='resource', + name='feature_slot_3', + ), + ] |