diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-01-24 23:19:06 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-01-24 23:19:06 +0000 |
| commit | e12aec4ccdef7752fb87bd857a48eb4587016573 (patch) | |
| tree | 2a1feae67fb204b0f308258ce70bd8e4ac26d887 /migrations | |
| parent | d4936e18ee93f8ee8aedce4bc732af5068974536 (diff) | |
| download | cheatdb-e12aec4ccdef7752fb87bd857a48eb4587016573.tar.xz | |
Add automatic GitHub webhook creation
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/versions/7a48dbd05780_.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/migrations/versions/7a48dbd05780_.py b/migrations/versions/7a48dbd05780_.py new file mode 100644 index 0000000..8f3b96e --- /dev/null +++ b/migrations/versions/7a48dbd05780_.py @@ -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') |
