update database schema

This commit is contained in:
Morgan McMillian 2017-05-03 23:11:41 -07:00
parent 3486c19228
commit ea684e1462

View file

@ -0,0 +1,40 @@
"""empty message
Revision ID: f878073e1b4a
Revises: 0ddf19141ead
Create Date: 2017-05-03 23:11:07.925047
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'f878073e1b4a'
down_revision = '0ddf19141ead'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('matrix_admin_rooms',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('matrix_id', sa.Text(), nullable=True),
sa.Column('room_id', sa.Text(), nullable=True),
sa.PrimaryKeyConstraint('id')
)
op.drop_table('direct_msg_rooms')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('direct_msg_rooms',
sa.Column('id', sa.INTEGER(), nullable=False),
sa.Column('sender', sa.TEXT(), nullable=True),
sa.Column('room_id', sa.TEXT(), nullable=True),
sa.PrimaryKeyConstraint('id')
)
op.drop_table('matrix_admin_rooms')
# ### end Alembic commands ###