From 77783e150233e5cb9cb8982a62f7c5c0f0a47f91 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Wed, 11 Oct 2023 03:49:11 -0700 Subject: [PATCH] Add migrations for env decoupling from models --- .../0044_alter_markettick_fee_and_more.py | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 api/migrations/0044_alter_markettick_fee_and_more.py diff --git a/api/migrations/0044_alter_markettick_fee_and_more.py b/api/migrations/0044_alter_markettick_fee_and_more.py new file mode 100644 index 00000000..c49a2736 --- /dev/null +++ b/api/migrations/0044_alter_markettick_fee_and_more.py @@ -0,0 +1,53 @@ +# Generated by Django 4.2.6 on 2023-10-11 10:48 + +import django.core.validators +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("api", "0043_order_latitude_order_longitude"), + ] + + operations = [ + migrations.AlterField( + model_name="markettick", + name="fee", + field=models.DecimalField( + decimal_places=4, + default=0, + max_digits=4, + validators=[ + django.core.validators.MinValueValidator(0), + django.core.validators.MaxValueValidator(1), + ], + ), + ), + migrations.AlterField( + model_name="onchainpayment", + name="num_satoshis", + field=models.PositiveBigIntegerField( + null=True, + validators=[ + django.core.validators.MinValueValidator(0), + django.core.validators.MaxValueValidator(7500000.0), + ], + ), + ), + migrations.AlterField( + model_name="onchainpayment", + name="sent_satoshis", + field=models.PositiveBigIntegerField( + null=True, + validators=[ + django.core.validators.MinValueValidator(0), + django.core.validators.MaxValueValidator(7500000.0), + ], + ), + ), + migrations.AlterField( + model_name="onchainpayment", + name="swap_fee_rate", + field=models.DecimalField(decimal_places=2, default=1, max_digits=4), + ), + ]