~sircmpwn/meta.sr.ht

ref: 72548bd7545f78670878667674cc7645835a17bd meta.sr.ht/metasrht/alembic/versions/e3dc9b1bcf42_add_preauthorized_to_oauth_clients.py -rw-r--r-- 669 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
27
"""Add preauthorized to oauth clients

Revision ID: e3dc9b1bcf42
Revises: None
Create Date: 2017-04-06 07:10:27.410569

"""

# revision identifiers, used by Alembic.
revision = 'e3dc9b1bcf42'
down_revision = None

from alembic import op
import sqlalchemy as sa


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('oauthclient', sa.Column('preauthorized', sa.Boolean(),
        nullable=False, server_default='f'))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('oauthclient', 'preauthorized')
    # ### end Alembic commands ###