35 lines
1.0 KiB
Python
35 lines
1.0 KiB
Python
"""konto anker
|
|
|
|
Revision ID: 1ef6a356f028
|
|
Revises: b2b1f5a18a74
|
|
Create Date: 2026-07-19 21:18:41.888568
|
|
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = '1ef6a356f028'
|
|
down_revision: Union[str, Sequence[str], None] = 'b2b1f5a18a74'
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
"""Upgrade schema."""
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('accounts', sa.Column('anchor_date', sa.Date(), nullable=True))
|
|
op.add_column('accounts', sa.Column('anchor_balance', sa.Numeric(precision=12, scale=2), nullable=True))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
"""Downgrade schema."""
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('accounts', 'anchor_balance')
|
|
op.drop_column('accounts', 'anchor_date')
|
|
# ### end Alembic commands ###
|