Add automatic GitHub webhook creation

This commit is contained in:
rubenwardy
2020-01-24 23:19:06 +00:00
parent d4936e18ee
commit e12aec4ccd
6 changed files with 183 additions and 9 deletions

View File

@@ -0,0 +1,24 @@
"""empty message
Revision ID: 7a48dbd05780
Revises: df66c78e6791
Create Date: 2020-01-24 21:52:49.744404
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '7a48dbd05780'
down_revision = 'df66c78e6791'
branch_labels = None
depends_on = None
def upgrade():
op.add_column('user', sa.Column('github_access_token', sa.String(length=50), nullable=True, server_default=None))
def downgrade():
op.drop_column('user', 'github_access_token')