~sircmpwn/meta.sr.ht

ref: 72548bd7545f78670878667674cc7645835a17bd meta.sr.ht/metasrht/alembic/versions/0972ddb8d4f8_add_extra_column_to_auth_factor.py -rw-r--r-- 427 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 extra column to auth factor

Revision ID: 0972ddb8d4f8
Revises: db18bd34de5a
Create Date: 2020-09-02 14:08:08.417884

"""

# revision identifiers, used by Alembic.
revision = '0972ddb8d4f8'
down_revision = 'db18bd34de5a'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column("user_auth_factor", sa.Column("extra", sa.JSON))


def downgrade():
    op.drop_column("user_auth_factor", "extra")