~sircmpwn/meta.sr.ht

ref: 72548bd7545f78670878667674cc7645835a17bd meta.sr.ht/metasrht/alembic/versions/6cdf6b9f90a2_add_b64_key_and_key_type_options_to_.py -rw-r--r-- 538 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
"""add b64_key and key_type options to SSHKey

Revision ID: 6cdf6b9f90a2
Revises: d950ba31b98d
Create Date: 2019-08-14 13:43:26.743795

"""

# revision identifiers, used by Alembic.
revision = '6cdf6b9f90a2'
down_revision = 'd950ba31b98d'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('sshkey', sa.Column('b64_key', sa.String(4096)))
    op.add_column('sshkey', sa.Column('key_type', sa.String(256)))


def downgrade():
    op.drop_column('sshkey', 'b64_key')
    op.drop_column('sshkey', 'key_type')