35 lines
987 B
Python
35 lines
987 B
Python
"""+user.balance
|
|
|
|
Revision ID: c58e44d15cca
|
|
Revises: e237f7c5cb9a
|
|
Create Date: 2026-08-01 22:59:28.814554
|
|
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = 'c58e44d15cca'
|
|
down_revision: Union[str, Sequence[str], None] = 'e237f7c5cb9a'
|
|
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.create_unique_constraint(None, 'invoices', ['id'])
|
|
op.add_column('users', sa.Column('balance', sa.FLOAT(precision=2), nullable=False))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
"""Downgrade schema."""
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('users', 'balance')
|
|
op.drop_constraint(None, 'invoices', type_='unique')
|
|
# ### end Alembic commands ###
|