add new database fields and migrate the data
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# Generated by Django 3.2.2 on 2021-05-11 05:28
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('transactions', '0002_transaction_trade_id'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='transaction',
|
||||
name='crypto_amount',
|
||||
field=models.DecimalField(blank=True, decimal_places=10, max_digits=24, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='transaction',
|
||||
name='crypto_fee',
|
||||
field=models.DecimalField(blank=True, decimal_places=10, max_digits=24, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='transaction',
|
||||
name='fiat_amount',
|
||||
field=models.DecimalField(blank=True, decimal_places=10, max_digits=24, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='transaction',
|
||||
name='fiat_fee',
|
||||
field=models.DecimalField(blank=True, decimal_places=10, max_digits=24, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='transaction',
|
||||
name='transaction_type',
|
||||
field=models.CharField(choices=[('B', 'Buy Crypto'), ('S', 'Sell Crypto'), ('T', 'Transfer Crypto')], default='B', max_length=1),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user