banana-video/alembic/versions/588220abccaf_add_video_url.py
2025-08-31 18:38:41 +08:00

29 lines
687 B
Python

"""add video url
Revision ID: 588220abccaf
Revises: 9957de01a152
Create Date: 2025-08-29 15:04:20.580590
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '588220abccaf'
down_revision = '9957de01a152'
branch_labels = None
depends_on = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('projects', sa.Column('video_url', sa.String(length=500), nullable=True))
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('projects', 'video_url')
# ### end Alembic commands ###