~sircmpwn/meta.sr.ht

ref: 72548bd7545f78670878667674cc7645835a17bd meta.sr.ht/metasrht/alembic/versions/9caaf5055676_expand_maximum_size_of_pgp_keys.py -rw-r--r-- 434 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
"""Expand maximum size of PGP keys

Revision ID: 9caaf5055676
Revises: 839e4a29751a
Create Date: 2018-07-10 08:29:15.686334

"""

# revision identifiers, used by Alembic.
revision = '9caaf5055676'
down_revision = '839e4a29751a'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.alter_column('pgpkey', 'key', type_=sa.String(32768))


def downgrade():
    op.alter_column('pgpkey', 'key', type_=sa.String(16384))