From 1c5e6909eb5420fd4d873f02344bc7fb14570bbf Mon Sep 17 00:00:00 2001 From: Mohamad Bastin Date: Mon, 2 Oct 2023 23:36:19 +0200 Subject: [PATCH 1/2] change claim recipts amount to use big num field --- bin/pre_compile | 4 ---- faucet/models.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 bin/pre_compile diff --git a/bin/pre_compile b/bin/pre_compile deleted file mode 100644 index 2783801c..00000000 --- a/bin/pre_compile +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -echo "this is pre_compile" -pip --version -python --version \ No newline at end of file diff --git a/faucet/models.py b/faucet/models.py index b84bef07..27712310 100644 --- a/faucet/models.py +++ b/faucet/models.py @@ -162,7 +162,7 @@ class ClaimReceipt(models.Model): passive_address = models.CharField(max_length=512, null=True, blank=True) - amount = models.BigIntegerField() + amount = BigNumField() datetime = models.DateTimeField() last_updated = models.DateTimeField(auto_now=True, null=True, blank=True) batch = models.ForeignKey( From 59d4919696cf542e0da1a90f53a7fadf6353c1c3 Mon Sep 17 00:00:00 2001 From: Mohamad Bastin Date: Mon, 2 Oct 2023 23:43:09 +0200 Subject: [PATCH 2/2] change claim recipts amount to use big num field --- .../0056_alter_claimreceipt_amount.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 faucet/migrations/0056_alter_claimreceipt_amount.py diff --git a/faucet/migrations/0056_alter_claimreceipt_amount.py b/faucet/migrations/0056_alter_claimreceipt_amount.py new file mode 100644 index 00000000..2eaa8a85 --- /dev/null +++ b/faucet/migrations/0056_alter_claimreceipt_amount.py @@ -0,0 +1,19 @@ +# Generated by Django 4.0.4 on 2023-10-02 21:42 + +import core.models +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('faucet', '0055_donationreceipt_status_and_more'), + ] + + operations = [ + migrations.AlterField( + model_name='claimreceipt', + name='amount', + field=core.models.BigNumField(max_length=200), + ), + ]