thesis-scripts/migrations/versions/9071255c7ee9_initial_add.py

33 lines
866 B
Python
Raw Normal View History

2026-06-14 19:38:09 +00:00
"""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 ###