Files
travelrouter/migrations/versions/e36dba9683b5_config_table.py
Rich fb63f91239 .
2021-08-03 10:50:12 +01:00

34 lines
800 B
Python

"""Config table
Revision ID: e36dba9683b5
Revises: cda874698f7d
Create Date: 2021-08-03 10:23:52.862784
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e36dba9683b5'
down_revision = 'cda874698f7d'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('config',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('k', sa.String(length=100), nullable=True),
sa.Column('v', sa.String(length=1023), nullable=True),
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('config')
# ### end Alembic commands ###