yt-dlp-bot/alembic/versions/6221c0018660_.py

36 lines
877 B
Python
Raw Normal View History

2022-02-04 06:21:27 +08:00
"""empty message
Revision ID: 6221c0018660
Revises: 2689b03525f8
Create Date: 2022-02-20 03:00:01.366172
"""
from alembic import op
import sqlalchemy as sa
import sqlalchemy_utils
# revision identifiers, used by Alembic.
revision = '6221c0018660'
down_revision = '2689b03525f8'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
2022-06-11 04:35:48 +08:00
op.create_table(
'yt_dlp',
sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
sa.Column('current_version', sa.String(), nullable=False),
sa.Column('updated_at', sa.DateTime(), nullable=False),
sa.PrimaryKeyConstraint('id'),
2022-02-04 06:21:27 +08:00
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('yt_dlp')
# ### end Alembic commands ###