~sircmpwn/meta.sr.ht

ref: 72548bd7545f78670878667674cc7645835a17bd meta.sr.ht/metasrht/alembic/versions/db18bd34de5a_add_comment_to_oauthtoken.py -rw-r--r-- 422 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
"""Add comment to oauthtoken

Revision ID: db18bd34de5a
Revises: '6cdf6b9f90a2'
Create Date: 2020-09-02 13:48:09.098431

"""

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

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('oauthtoken', sa.Column('comment', sa.String(128)))


def downgrade():
    op.drop_column('oauthtoken', 'comment')