~sircmpwn/dispatch.sr.ht

ref: e140b7ef212251db703209f02c6a3312c56ac497 dispatch.sr.ht/dispatchsrht/alembic/versions/986fd25d5184_add_secrets_to_github_prs.py -rw-r--r-- 648 bytes View raw
e140b7efDrew DeVault Add support for secrets to private repos PRs 11 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
"""Add secrets to GitHub PRs

Revision ID: 986fd25d5184
Revises: 5ad9b51c90f5
Create Date: 2019-06-21 10:36:22.290121

"""

# revision identifiers, used by Alembic.
revision = '986fd25d5184'
down_revision = '5ad9b51c90f5'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('github_pr_to_build', sa.Column('private',
            sa.Boolean, nullable=False, server_default='f'))
    op.add_column('github_pr_to_build', sa.Column('secrets',
            sa.Boolean, nullable=False, server_default='f'))


def downgrade():
    op.add_drop('github_pr_to_build', 'private')
    op.add_drop('github_pr_to_build', 'secrets')