NexusDashboard/migrations/versions/8a2966b9f7ee_add_column_to_track_times_key_uses.py

29 lines
748 B
Python
Raw Normal View History

2022-01-16 18:22:00 +00:00
"""add column to track times key uses
Revision ID: 8a2966b9f7ee
Revises: 712d42956a47
Create Date: 2021-12-10 14:59:21.787133
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '8a2966b9f7ee'
down_revision = '712d42956a47'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('play_keys', sa.Column('times_used', mysql.INTEGER(), server_default='0', nullable=False))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('play_keys', 'times_used')
# ### end Alembic commands ###