From 23eefc269b6813830fe44f9a56573788fad03a83 Mon Sep 17 00:00:00 2001 From: Boris Date: Wed, 1 Apr 2026 23:46:20 +0300 Subject: [PATCH] Fix migration graph: restore missing 0006 file, add 0008 cleanup 0007_merge referenced 0006_item_category_unending which git had renamed, causing NodeNotFoundError on clean DBs. Restores the file so both 0006 leaves exist, then 0008 reverts the stale category choices back to the correct set (no unending in category). Co-Authored-By: Claude Sonnet 4.6 --- .../migrations/0006_item_category_unending.py | 25 +++++++++++++++++++ .../migrations/0008_fix_category_choices.py | 24 ++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 backlogger/migrations/0006_item_category_unending.py create mode 100644 backlogger/migrations/0008_fix_category_choices.py diff --git a/backlogger/migrations/0006_item_category_unending.py b/backlogger/migrations/0006_item_category_unending.py new file mode 100644 index 0000000..1849bad --- /dev/null +++ b/backlogger/migrations/0006_item_category_unending.py @@ -0,0 +1,25 @@ +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('backlogger', '0005_item_status'), + ] + + operations = [ + migrations.AlterField( + model_name='item', + name='category', + field=models.CharField( + choices=[ + ('games', 'Games'), + ('books', 'Books'), + ('films', 'Films'), + ('unending', 'Unending'), + ('other', 'Other'), + ], + max_length=10, + ), + ), + ] diff --git a/backlogger/migrations/0008_fix_category_choices.py b/backlogger/migrations/0008_fix_category_choices.py new file mode 100644 index 0000000..c042dbc --- /dev/null +++ b/backlogger/migrations/0008_fix_category_choices.py @@ -0,0 +1,24 @@ +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('backlogger', '0007_merge'), + ] + + operations = [ + migrations.AlterField( + model_name='item', + name='category', + field=models.CharField( + choices=[ + ('games', 'Games'), + ('books', 'Books'), + ('films', 'Films'), + ('other', 'Other'), + ], + max_length=10, + ), + ), + ]