-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: add origin pending message field (#677)
* Fix: Adds origins field on pending_messages table * Fix: from_obj missing origin * Fix: check to ensure origin is not OnChain * Fix: lint issue * Fix: isort issue * Fix: Solve code quality issues. * Fix: Remove un-needed log info.. * Fix: Solve None origin case tests. --------- Co-authored-by: Andres D. Molins <[email protected]>
- Loading branch information
Showing
7 changed files
with
74 additions
and
12 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
deployment/migrations/versions/0027_bafd49315934_add_pending_messages_origin.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,24 @@ | ||
"""add_pending_messages_origin | ||
Revision ID: bafd49315934 | ||
Revises: d3bba5c2bfa0 | ||
Create Date: 2025-01-13 15:05:05.309960 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'bafd49315934' | ||
down_revision = 'd3bba5c2bfa0' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.add_column("pending_messages", sa.Column("origin", sa.String(), nullable=True, default="p2p")) | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_column("pending_messages", "origin") |
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
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
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