.
This commit is contained in:
33
migrations/versions/cda874698f7d_passwords_table.py
Normal file
33
migrations/versions/cda874698f7d_passwords_table.py
Normal file
@@ -0,0 +1,33 @@
|
||||
"""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 ###
|
||||
Reference in New Issue
Block a user