33 lines
866 B
Python
33 lines
866 B
Python
|
|
"""initial add
|
||
|
|
|
||
|
|
Revision ID: 9071255c7ee9
|
||
|
|
Revises: 271c3e6de3d7
|
||
|
|
Create Date: 2026-06-14 16:28:13.879143
|
||
|
|
|
||
|
|
"""
|
||
|
|
from typing import Sequence, Union
|
||
|
|
|
||
|
|
from alembic import op
|
||
|
|
import sqlalchemy as sa
|
||
|
|
|
||
|
|
|
||
|
|
# revision identifiers, used by Alembic.
|
||
|
|
revision: str = '9071255c7ee9'
|
||
|
|
down_revision: Union[str, Sequence[str], None] = '271c3e6de3d7'
|
||
|
|
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('entries', sa.Column('md5', sa.String(length=255), nullable=False))
|
||
|
|
# ### end Alembic commands ###
|
||
|
|
|
||
|
|
|
||
|
|
def downgrade() -> None:
|
||
|
|
"""Downgrade schema."""
|
||
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
|
op.drop_column('entries', 'md5')
|
||
|
|
# ### end Alembic commands ###
|