diff --git a/src/backend/InvenTree/build/migrations/0060_remove_build_notes.py b/src/backend/InvenTree/build/migrations/0060_remove_build_notes.py index bd07063868..4241689d3a 100644 --- a/src/backend/InvenTree/build/migrations/0060_remove_build_notes.py +++ b/src/backend/InvenTree/build/migrations/0060_remove_build_notes.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): dependencies = [ ("build", "0059_build_tags"), - ("common", "0050_remove_notesimage_model_id_and_more") + ("common", "0051_remove_notesimage_model_id_and_more") ] operations = [ diff --git a/src/backend/InvenTree/common/migrations/0048_note.py b/src/backend/InvenTree/common/migrations/0049_note.py similarity index 99% rename from src/backend/InvenTree/common/migrations/0048_note.py rename to src/backend/InvenTree/common/migrations/0049_note.py index 72219759f1..a1dfafb1f4 100644 --- a/src/backend/InvenTree/common/migrations/0048_note.py +++ b/src/backend/InvenTree/common/migrations/0049_note.py @@ -10,7 +10,7 @@ from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ - ("common", "0047_parametertemplate_unique"), + ("common", "0048_notificationmessage_link"), ("contenttypes", "0002_remove_content_type_name"), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] diff --git a/src/backend/InvenTree/common/migrations/0049_auto_20260525_0956.py b/src/backend/InvenTree/common/migrations/0050_auto_20260525_0956.py similarity index 95% rename from src/backend/InvenTree/common/migrations/0049_auto_20260525_0956.py rename to src/backend/InvenTree/common/migrations/0050_auto_20260525_0956.py index 04bcf23ed5..87b228665c 100644 --- a/src/backend/InvenTree/common/migrations/0049_auto_20260525_0956.py +++ b/src/backend/InvenTree/common/migrations/0050_auto_20260525_0956.py @@ -122,11 +122,12 @@ class Migration(migrations.Migration): # Ensure that each app which supports 'notes' is up-to-date first dependencies = [ + ("common", "0049_note"), + # Other internal apps which have models that support notes ("build", "0059_build_tags"), - ("common", "0048_note"), ("company", "0080_company_tags"), - ("order", "0120_purchaseorder_tags_returnorder_tags_salesorder_tags_and_more"), - ("part", "0151_part_consumable"), + ("order", "0121_add_line_item_discount"), + ("part", "0152_alter_partpricing_currency"), ("stock", "0125_remove_mptt_fields") ] diff --git a/src/backend/InvenTree/common/migrations/0050_remove_notesimage_model_id_and_more.py b/src/backend/InvenTree/common/migrations/0051_remove_notesimage_model_id_and_more.py similarity index 93% rename from src/backend/InvenTree/common/migrations/0050_remove_notesimage_model_id_and_more.py rename to src/backend/InvenTree/common/migrations/0051_remove_notesimage_model_id_and_more.py index 56d336395b..b1d27d0474 100644 --- a/src/backend/InvenTree/common/migrations/0050_remove_notesimage_model_id_and_more.py +++ b/src/backend/InvenTree/common/migrations/0051_remove_notesimage_model_id_and_more.py @@ -7,7 +7,7 @@ from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ - ("common", "0049_auto_20260525_0956"), + ("common", "0050_auto_20260525_0956"), ] operations = [ diff --git a/src/backend/InvenTree/common/test_migrations.py b/src/backend/InvenTree/common/test_migrations.py index f6c89565dc..57c3e20c8d 100644 --- a/src/backend/InvenTree/common/test_migrations.py +++ b/src/backend/InvenTree/common/test_migrations.py @@ -308,7 +308,7 @@ class TestNoteMigrations(MigratorTestCase): ('part', '0150_part_maximum_stock'), ('stock', '0123_remove_stockitem_review_needed'), ] - migrate_to = ('common', '0050_remove_notesimage_model_id_and_more') + migrate_to = ('common', '0051_remove_notesimage_model_id_and_more') def generate_image(self, name: str): """Generate a dummy image file for upload.""" diff --git a/src/backend/InvenTree/company/migrations/0081_remove_company_notes_remove_manufacturerpart_notes_and_more.py b/src/backend/InvenTree/company/migrations/0081_remove_company_notes_remove_manufacturerpart_notes_and_more.py index da17868f9e..778e9179ce 100644 --- a/src/backend/InvenTree/company/migrations/0081_remove_company_notes_remove_manufacturerpart_notes_and_more.py +++ b/src/backend/InvenTree/company/migrations/0081_remove_company_notes_remove_manufacturerpart_notes_and_more.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): dependencies = [ ("company", "0080_company_tags"), - ("common", "0050_remove_notesimage_model_id_and_more") + ("common", "0051_remove_notesimage_model_id_and_more") ] operations = [ diff --git a/src/backend/InvenTree/order/migrations/0121_remove_purchaseorder_notes_remove_returnorder_notes_and_more.py b/src/backend/InvenTree/order/migrations/0122_remove_purchaseorder_notes_remove_returnorder_notes_and_more.py similarity index 82% rename from src/backend/InvenTree/order/migrations/0121_remove_purchaseorder_notes_remove_returnorder_notes_and_more.py rename to src/backend/InvenTree/order/migrations/0122_remove_purchaseorder_notes_remove_returnorder_notes_and_more.py index d80a3370e8..518449cee7 100644 --- a/src/backend/InvenTree/order/migrations/0121_remove_purchaseorder_notes_remove_returnorder_notes_and_more.py +++ b/src/backend/InvenTree/order/migrations/0122_remove_purchaseorder_notes_remove_returnorder_notes_and_more.py @@ -6,8 +6,8 @@ from django.db import migrations class Migration(migrations.Migration): dependencies = [ - ("order", "0120_purchaseorder_tags_returnorder_tags_salesorder_tags_and_more"), - ("common", "0050_remove_notesimage_model_id_and_more") + ("order", "0121_add_line_item_discount"), + ("common", "0051_remove_notesimage_model_id_and_more") ] operations = [ diff --git a/src/backend/InvenTree/part/migrations/0153_remove_part_notes.py b/src/backend/InvenTree/part/migrations/0153_remove_part_notes.py index e28660869d..9d3524952b 100644 --- a/src/backend/InvenTree/part/migrations/0153_remove_part_notes.py +++ b/src/backend/InvenTree/part/migrations/0153_remove_part_notes.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): dependencies = [ ("part", "0152_alter_partpricing_currency"), - ("common", "0050_remove_notesimage_model_id_and_more") + ("common", "0051_remove_notesimage_model_id_and_more") ] operations = [ diff --git a/src/backend/InvenTree/stock/migrations/0126_remove_stockitem_notes.py b/src/backend/InvenTree/stock/migrations/0126_remove_stockitem_notes.py index 171a7742f3..2a5cb0c739 100644 --- a/src/backend/InvenTree/stock/migrations/0126_remove_stockitem_notes.py +++ b/src/backend/InvenTree/stock/migrations/0126_remove_stockitem_notes.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): dependencies = [ ("stock", "0125_remove_mptt_fields"), - ("common", "0050_remove_notesimage_model_id_and_more") + ("common", "0051_remove_notesimage_model_id_and_more") ] operations = [