Add the configuration table migration
This commit is contained in:
25
core/admin/migrations/versions/cd79ed46d9c2_.py
Normal file
25
core/admin/migrations/versions/cd79ed46d9c2_.py
Normal file
@@ -0,0 +1,25 @@
|
||||
""" Add a configuration table
|
||||
|
||||
Revision ID: cd79ed46d9c2
|
||||
Revises: 25fd6c7bcb4a
|
||||
Create Date: 2018-10-17 21:44:48.924921
|
||||
|
||||
"""
|
||||
|
||||
revision = 'cd79ed46d9c2'
|
||||
down_revision = '25fd6c7bcb4a'
|
||||
|
||||
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),
|
||||
sa.PrimaryKeyConstraint('name')
|
||||
)
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_table('config')
|
||||
Reference in New Issue
Block a user