Skip to content

Commit

Permalink
Merge pull request #17 from yuriiz/master
Browse files Browse the repository at this point in the history
Remove swap fee limit
  • Loading branch information
Pavel authored Aug 12, 2021
2 parents e4a1ebe + 44bdbe8 commit 2ad6564
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions alembic/versions/4957211c454a_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
"""empty message
Revision ID: 4957211c454a
Revises: 4436616b48ab
Create Date: 2021-08-12 13:18:48.555509
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '4957211c454a'
down_revision = '4436616b48ab'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('swap', 'swap_fee_amount',
existing_type=sa.NUMERIC(precision=21, scale=0),
type_=sa.Numeric(),
existing_nullable=True)
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('swap', 'swap_fee_amount',
existing_type=sa.Numeric(),
type_=sa.NUMERIC(precision=21, scale=0),
existing_nullable=True)
# ### end Alembic commands ###
2 changes: 1 addition & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Swap(Base):
from_amount = Column(Numeric(), nullable=False)
to_amount = Column(Numeric(), nullable=False)
filter_mode = Column(String(32), nullable=False)
swap_fee_amount = Column(Numeric(21))
swap_fee_amount = Column(Numeric())
pair = relationship(
Pair, backref=backref("swaps", uselist=True, cascade="delete,all")
)
Expand Down

0 comments on commit 2ad6564

Please sign in to comment.