Migration for playlist dates
This commit is contained in:
parent
551319bb59
commit
3a7d332649
@ -0,0 +1,30 @@
|
|||||||
|
"""Add playlist dates and loaded
|
||||||
|
|
||||||
|
Revision ID: 2cc37d3cf07f
|
||||||
|
Revises: e3b04db5506f
|
||||||
|
Create Date: 2021-04-27 21:55:50.639406
|
||||||
|
|
||||||
|
"""
|
||||||
|
from alembic import op
|
||||||
|
import sqlalchemy as sa
|
||||||
|
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = '2cc37d3cf07f'
|
||||||
|
down_revision = 'e3b04db5506f'
|
||||||
|
branch_labels = None
|
||||||
|
depends_on = None
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
op.add_column('playlists', sa.Column('last_used', sa.DateTime(), nullable=True))
|
||||||
|
op.add_column('playlists', sa.Column('loaded', sa.Boolean(), nullable=True))
|
||||||
|
# ### end Alembic commands ###
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
op.drop_column('playlists', 'loaded')
|
||||||
|
op.drop_column('playlists', 'last_used')
|
||||||
|
# ### end Alembic commands ###
|
||||||
Loading…
Reference in New Issue
Block a user