yt-dlp-bot/alembic/versions/6221c0018660_.py
Taras Terletskyi 773eddffcd Initial
2022-03-09 23:17:37 +02:00

34 lines
851 B
Python

"""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! ###
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')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('yt_dlp')
# ### end Alembic commands ###