Files
travelrouter/migrations/versions/cda874698f7d_passwords_table.py
Rich 6c02604ed5 .
2021-07-10 11:19:22 +01:00

34 lines
818 B
Python

"""Passwords table
Revision ID: cda874698f7d
Revises: ca4165261e83
Create Date: 2021-07-10 09:55:29.035150
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'cda874698f7d'
down_revision = 'ca4165261e83'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('passwords',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('ssid', sa.String(length=140), nullable=True),
sa.Column('password', sa.String(length=128), nullable=True),
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('passwords')
# ### end Alembic commands ###