Skip to content

Commit 629ad1c

Browse files
committed
alembic: migrate path from 32 to 128
1 parent 7b40e9a commit 629ad1c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"""Increase sql path column length to 128
2+
3+
Revision ID: 799310dca712
4+
Revises: ca514840f404
5+
Create Date: 2020-04-09 11:34:05.456439
6+
7+
"""
8+
from alembic import op
9+
import sqlalchemy as sa
10+
11+
12+
# revision identifiers, used by Alembic.
13+
revision = '799310dca712'
14+
down_revision = 'ca514840f404'
15+
branch_labels = None
16+
depends_on = None
17+
18+
19+
20+
def upgrade():
21+
op.alter_column('flask_usage', 'path', type_=sa.String(128), existing_type=sa.String(length=32))
22+
23+
24+
def downgrade():
25+
op.alter_column('flask_usage', 'path', type_=sa.String(32), existing_type=sa.String(length=128))

0 commit comments

Comments
 (0)