Create tokens table
This commit is contained in:
parent
82c167d842
commit
ba45200d66
30
alembic/versions/c4a7620a2d33_create_tokens_table.py
Normal file
30
alembic/versions/c4a7620a2d33_create_tokens_table.py
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
"""Create tokens table
|
||||||
|
|
||||||
|
Revision ID: c4a7620a2d33
|
||||||
|
Revises: 15ba9c27ee8a
|
||||||
|
Create Date: 2021-12-21 19:12:33.940117
|
||||||
|
|
||||||
|
"""
|
||||||
|
import sqlalchemy as sa
|
||||||
|
from alembic import op
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = "c4a7620a2d33"
|
||||||
|
down_revision = "15ba9c27ee8a"
|
||||||
|
branch_labels = None
|
||||||
|
depends_on = None
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
op.create_table(
|
||||||
|
"tokens",
|
||||||
|
sa.Column("token_address", sa.String(256), nullable=False),
|
||||||
|
sa.Column("decimals", sa.Numeric, nullable=False),
|
||||||
|
sa.PrimaryKeyConstraint("token_address"),
|
||||||
|
)
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
op.drop_table("tokens")
|
||||||
|
pass
|
Loading…
x
Reference in New Issue
Block a user