pnut-matrix/migrations/versions/0ddf19141ead_.py
Morgan McMillian 5fdf84f432 added events
2017-03-04 13:43:30 -08:00

37 lines
1 KiB
Python

"""empty message
Revision ID: 0ddf19141ead
Revises: d2033352cfdf
Create Date: 2017-03-04 13:42:49.178781
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0ddf19141ead'
down_revision = 'd2033352cfdf'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('matrix_msg_events',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('event_id', sa.Text(), nullable=True),
sa.Column('room_id', sa.Text(), nullable=True),
sa.Column('pnut_msgid', sa.Text(), nullable=True),
sa.Column('pnut_user', sa.Text(), nullable=True),
sa.Column('pnut_chan', sa.Text(), nullable=True),
sa.Column('deleted', sa.Boolean(), nullable=True),
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('matrix_msg_events')
# ### end Alembic commands ###