.
This commit is contained in:
40
migrations/versions/a43a3e4ff2f2_.py
Normal file
40
migrations/versions/a43a3e4ff2f2_.py
Normal file
@@ -0,0 +1,40 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: a43a3e4ff2f2
|
||||
Revises: 15f6b5e717d0
|
||||
Create Date: 2021-08-05 16:56:57.994085
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'a43a3e4ff2f2'
|
||||
down_revision = '15f6b5e717d0'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_table('passwords')
|
||||
op.drop_table('config_table')
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.create_table('config_table',
|
||||
sa.Column('id', sa.INTEGER(), nullable=False),
|
||||
sa.Column('k', sa.VARCHAR(length=100), nullable=True),
|
||||
sa.Column('v', sa.VARCHAR(length=1023), nullable=True),
|
||||
sa.PrimaryKeyConstraint('id')
|
||||
)
|
||||
op.create_table('passwords',
|
||||
sa.Column('id', sa.INTEGER(), nullable=False),
|
||||
sa.Column('ssid', sa.VARCHAR(length=140), nullable=True),
|
||||
sa.Column('password', sa.VARCHAR(length=128), nullable=True),
|
||||
sa.PrimaryKeyConstraint('id')
|
||||
)
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user