2018-11-08 21:32:06 +02:00
|
|
|
""" Add a configuration table
|
|
|
|
|
|
|
|
Revision ID: cd79ed46d9c2
|
|
|
|
Revises: 25fd6c7bcb4a
|
|
|
|
Create Date: 2018-10-17 21:44:48.924921
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
revision = 'cd79ed46d9c2'
|
2018-11-08 22:55:39 +02:00
|
|
|
down_revision = '3b281286c7bd'
|
2018-11-08 21:32:06 +02:00
|
|
|
|
|
|
|
from alembic import op
|
|
|
|
import sqlalchemy as sa
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
|
op.create_table('config',
|
|
|
|
sa.Column('name', sa.String(length=255), nullable=False),
|
|
|
|
sa.Column('value', sa.String(length=255), nullable=True),
|
2018-12-09 17:11:57 +02:00
|
|
|
sa.PrimaryKeyConstraint('name', name=op.f('config_pkey'))
|
2018-11-08 21:32:06 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
op.drop_table('config')
|