Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

Commit

Permalink
Database migration for source id
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairjcbrown committed Dec 23, 2018
1 parent e61ef16 commit 720a6d5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions services/events/migrations/versions/51a9c43f0b80_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
"""empty message
Revision ID: 51a9c43f0b80
Revises: dccf9917623a
Create Date: 2018-12-23 23:58:53.019338
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '51a9c43f0b80'
down_revision = 'dccf9917623a'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('event', sa.Column('source_id', sa.String(length=256), nullable=True))
# ### end Alembic commands ###


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

0 comments on commit 720a6d5

Please sign in to comment.