Skip to content

Commit

Permalink
Re-add field
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptobench committed Mar 28, 2024
1 parent 3df6d2a commit 3d983a9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions stats-backend/api2/migrations/0028_node_earnings_total.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.1.7 on 2024-03-28 15:01

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api2', '0027_remove_node_earnings_total_alter_node_computing_now_and_more'),
]

operations = [
migrations.AddField(
model_name='node',
name='earnings_total',
field=models.FloatField(blank=True, null=True),
),
]
1 change: 1 addition & 0 deletions stats-backend/api2/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Node(models.Model):
node_id = models.CharField(max_length=42, unique=True, db_index=True)
wallet = models.CharField(max_length=42, null=True, blank=True, db_index=True)
online = models.BooleanField(default=False, db_index=True)
earnings_total = models.FloatField(null=True, blank=True)
computing_now = models.BooleanField(default=False, db_index=True)
version = models.CharField(max_length=7, db_index=True)
updated_at = models.DateTimeField(auto_now=True, db_index=True)
Expand Down

0 comments on commit 3d983a9

Please sign in to comment.