Skip to content

Commit c014862

Browse files
committed
alembic: Upgrade ip_info from 128 to 1024
1 parent ea1bfa5 commit c014862

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
"""Increase ip_info size
2+
3+
Revision ID: ca514840f404
4+
Revises: 0aedc36acb3f
5+
Create Date: 2018-05-29 11:15:09.515284
6+
7+
"""
8+
from alembic import op
9+
import sqlalchemy as sa
10+
11+
12+
# revision identifiers, used by Alembic.
13+
revision = 'ca514840f404'
14+
down_revision = '0aedc36acb3f'
15+
branch_labels = None
16+
depends_on = None
17+
18+
19+
def upgrade():
20+
op.alter_column('flask_usage', 'ip_info', type_=sa.String(1024), existing_type=sa.String(length=128))
21+
22+
23+
def downgrade():
24+
op.alter_column('flask_usage', 'ip_info', type_=sa.String(128), existing_type=sa.String(length=1024))

0 commit comments

Comments
 (0)