Skip to content

Add migrations for e738f77 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions migrations/versions/1d329e436ecc_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
"""empty message

Revision ID: 1d329e436ecc
Revises: 16b6f57097d5
Create Date: 2020-09-28 00:13:18.252585

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '1d329e436ecc'
down_revision = '16b6f57097d5'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('attendee', sa.Column('order_id', sa.TEXT(), nullable=False))
op.add_column('attendee', sa.Column('ticket_type', sa.TEXT(), nullable=True))
op.add_column('attendee', sa.Column('type', sa.TEXT(), nullable=True))
op.create_unique_constraint(None, 'attendee', ['uuid'])
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_constraint(None, 'attendee', type_='unique')
op.drop_column('attendee', 'type')
op.drop_column('attendee', 'ticket_type')
op.drop_column('attendee', 'order_id')
# ### end Alembic commands ###