~sircmpwn/meta.sr.ht

ref: 72548bd7545f78670878667674cc7645835a17bd meta.sr.ht/metasrht/alembic/versions/e5f8d19beac2_increase_size_of_pgp_key_column.py -rw-r--r-- 635 bytes
72548bd7Drew DeVault API: Updates per core-go auth changes 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""Increase size of pgp key column

Revision ID: e5f8d19beac2
Revises: 7505107f9372
Create Date: 2017-04-06 21:38:44.908745

"""

# revision identifiers, used by Alembic.
revision = 'e5f8d19beac2'
down_revision = '7505107f9372'

from alembic import op
import sqlalchemy as sa


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column("pgpkey", "key", type_=sa.String(16384))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column("pgpkey", "key", type_=sa.String(4096))
    # ### end Alembic commands ###