-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy path57535f8d20f9_.py
More file actions
34 lines (26 loc) · 847 Bytes
/
57535f8d20f9_.py
File metadata and controls
34 lines (26 loc) · 847 Bytes
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
27
28
29
30
31
32
33
34
"""empty message
Revision ID: 57535f8d20f9
Revises: 15c0fa797121
Create Date: 2020-02-09 12:59:03.964434
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '57535f8d20f9'
down_revision = '15c0fa797121'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('events',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('event_name', sa.Text(), nullable=True),
sa.Column('organiser_name', sa.Text(), nullable=True),
sa.Column('date', sa.Date(), nullable=True),
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('events')
# ### end Alembic commands ###