From 6ae167a017e3eddd0f54c5558ce10be014ea40aa Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Mon, 18 Sep 2023 17:03:44 +0200 Subject: [PATCH] Hotfix: remove buggy migration. ref #910 --- ...id_sender_conversation_uuid_siae_for_v0.py | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 lemarche/conversations/migrations/0012_conversation_uuid_sender_conversation_uuid_siae_for_v0.py diff --git a/lemarche/conversations/migrations/0012_conversation_uuid_sender_conversation_uuid_siae_for_v0.py b/lemarche/conversations/migrations/0012_conversation_uuid_sender_conversation_uuid_siae_for_v0.py deleted file mode 100644 index e5ec5d8e4..000000000 --- a/lemarche/conversations/migrations/0012_conversation_uuid_sender_conversation_uuid_siae_for_v0.py +++ /dev/null @@ -1,22 +0,0 @@ -# Generated by Django 4.2.2 on 2023-09-05 18:03 -from django.db import migrations - - -def set_uuids_again(apps, schema_editor): - Conversation = apps.get_model("conversations", "Conversation") - for conversation in Conversation.objects.filter(version=0): - conversation.sender_encoded = "" - conversation.set_sender_encoded() - conversation.siae_encoded = "" - conversation.set_siae_encoded() - conversation.save() - - -class Migration(migrations.Migration): - dependencies = [ - ("conversations", "0011_conversation_sender_siae_encoded_unique"), - ] - - operations = [ - migrations.RunPython(set_uuids_again, migrations.RunPython.noop), - ]