Initial commit
This commit is contained in:
commit
9638f5a31b
45 files changed
+2421
No files matched your search
@@ -0,0 +1,30 @@
|
||||
"""add rates to Asset
|
||||
|
||||
Revision ID: 5c3d7b5ae3fb
|
||||
Revises:
|
||||
Create Date: 2024-02-16 15:59:08.740548
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = '5c3d7b5ae3fb'
|
||||
down_revision: Union[str, None] = None
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('assets', sa.Column('rates', sa.JSON(), nullable=False))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('assets', 'rates')
|
||||
# ### end Alembic commands ###
|
||||
@@ -0,0 +1,30 @@
|
||||
"""add new field
|
||||
|
||||
Revision ID: 9749eb810999
|
||||
Revises: 5c3d7b5ae3fb
|
||||
Create Date: 2024-02-16 16:14:11.380132
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = '9749eb810999'
|
||||
down_revision: Union[str, None] = '5c3d7b5ae3fb'
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('wallet_connections', sa.Column('without_pk', sa.Boolean(), nullable=False))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('wallet_connections', 'without_pk')
|
||||
# ### end Alembic commands ###
|
||||
Reference in new issue
Block a user