-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from PotLock/refactor-batch-dpnation
refactor batch function, edit model
- Loading branch information
Showing
8 changed files
with
216 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 5.0.4 on 2024-05-03 10:29 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("activities", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="activity", | ||
options={"verbose_name_plural": "Activities"}, | ||
), | ||
] |
35 changes: 35 additions & 0 deletions
35
donations/migrations/0005_remove_donation_unique_pot_on_chain_id_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Generated by Django 5.0.4 on 2024-05-03 10:29 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("accounts", "0001_initial"), | ||
("donations", "0004_alter_donation_on_chain_id"), | ||
("pots", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveConstraint( | ||
model_name="donation", | ||
name="unique_pot_on_chain_id", | ||
), | ||
migrations.AddConstraint( | ||
model_name="donation", | ||
constraint=models.UniqueConstraint( | ||
condition=models.Q(("pot__isnull", True)), | ||
fields=("on_chain_id",), | ||
name="unique_on_chain_id_when_pot_is_null", | ||
), | ||
), | ||
migrations.AddConstraint( | ||
model_name="donation", | ||
constraint=models.UniqueConstraint( | ||
condition=models.Q(("pot__isnull", False)), | ||
fields=("on_chain_id", "pot"), | ||
name="unique_on_chain_id_with_pot", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
indexer_app/migrations/0002_blockheight_block_timestamp.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 5.0.4 on 2024-05-03 10:29 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("indexer_app", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="blockheight", | ||
name="block_timestamp", | ||
field=models.DateTimeField( | ||
help_text="date equivalent of the block height.", | ||
null=True, | ||
verbose_name="block timestamp", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.