From 4136cb68681dd73d697fd65539edee2216c5fa09 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Wed, 24 Feb 2021 00:23:25 +0100 Subject: [PATCH] Unfreeze every account --- kfet/migrations/0076_unfreeze_accounts.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 kfet/migrations/0076_unfreeze_accounts.py diff --git a/kfet/migrations/0076_unfreeze_accounts.py b/kfet/migrations/0076_unfreeze_accounts.py new file mode 100644 index 00000000..23901d99 --- /dev/null +++ b/kfet/migrations/0076_unfreeze_accounts.py @@ -0,0 +1,17 @@ +# Generated by Django 2.2.17 on 2021-02-23 22:51 + +from django.db import migrations + + +def unfreeze_accounts(apps, schema_editor): + Account = apps.get_model("kfet", "Account") + Account.objects.all().update(is_frozen=False) + + +class Migration(migrations.Migration): + + dependencies = [ + ("kfet", "0075_remove_accountnegative_balance_offset"), + ] + + operations = [migrations.RunPython(unfreeze_accounts, migrations.RunPython.noop)]