feat: Konto-Saldo-Anker mit ankerbasierter Saldenrechnung
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
34
finance/alembic/versions/1ef6a356f028_konto_anker.py
Normal file
34
finance/alembic/versions/1ef6a356f028_konto_anker.py
Normal file
@@ -0,0 +1,34 @@
|
||||
"""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 ###
|
||||
Reference in New Issue
Block a user