Fix migration graph: restore missing 0006 file, add 0008 cleanup
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
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 <noreply@anthropic.com>
This commit is contained in:
25
backlogger/migrations/0006_item_category_unending.py
Normal file
25
backlogger/migrations/0006_item_category_unending.py
Normal file
@@ -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,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
||||||
24
backlogger/migrations/0008_fix_category_choices.py
Normal file
24
backlogger/migrations/0008_fix_category_choices.py
Normal file
@@ -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,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user