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