-
Notifications
You must be signed in to change notification settings - Fork 4
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 #10 from yuriiz/master
Skip failed swaps
- Loading branch information
Showing
4 changed files
with
93 additions
and
3 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,56 @@ | ||
"""empty message | ||
Revision ID: 8dd169389646 | ||
Revises: 29c9ff4e6926 | ||
Create Date: 2021-07-02 11:44:43.666306 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "8dd169389646" | ||
down_revision = "29c9ff4e6926" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("pair", "token1_volume") | ||
op.drop_column("pair", "token0_volume") | ||
op.drop_column("token", "trade_volume") | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column( | ||
"token", | ||
sa.Column( | ||
"trade_volume", | ||
sa.NUMERIC(precision=34, scale=0), | ||
autoincrement=False, | ||
nullable=True, | ||
), | ||
) | ||
op.add_column( | ||
"pair", | ||
sa.Column( | ||
"token0_volume", | ||
sa.NUMERIC(precision=34, scale=0), | ||
autoincrement=False, | ||
nullable=True, | ||
), | ||
) | ||
op.add_column( | ||
"pair", | ||
sa.Column( | ||
"token1_volume", | ||
sa.NUMERIC(precision=34, scale=0), | ||
autoincrement=False, | ||
nullable=True, | ||
), | ||
) | ||
# ### end Alembic commands ### |
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,32 @@ | ||
"""empty message | ||
Revision ID: e3e1a25cae68 | ||
Revises: 8dd169389646 | ||
Create Date: 2021-07-02 11:47:57.854369 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "e3e1a25cae68" | ||
down_revision = "8dd169389646" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column("pair", sa.Column("token0_volume", sa.Numeric(), nullable=True)) | ||
op.add_column("pair", sa.Column("token1_volume", sa.Numeric(), nullable=True)) | ||
op.add_column("token", sa.Column("trade_volume", sa.Numeric(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("token", "trade_volume") | ||
op.drop_column("pair", "token1_volume") | ||
op.drop_column("pair", "token0_volume") | ||
# ### end Alembic commands ### |
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