ref: baf63a21556905a6c27516a8d5641d31120d1fe3 fanboi2/migration/versions/06000cefb0bb_add_scope_column_to_banword.py -rw-r--r-- 365 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""add scope column to banword

Revision ID: 06000cefb0bb
Revises: 47c309ddc2b9
Create Date: 2018-12-23 11:25:44.866557
"""
from alembic import op
import sqlalchemy as sa


revision = "06000cefb0bb"
down_revision = "47c309ddc2b9"


def upgrade():
    op.add_column("banword", sa.Column("scope", sa.String))


def downgrade():
    op.drop_column("banword", "scope")