From ea684e1462009f27fe45f76ca7592bc200b3cecc Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Wed, 3 May 2017 23:11:41 -0700 Subject: [PATCH] update database schema --- migrations/versions/f878073e1b4a_.py | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 migrations/versions/f878073e1b4a_.py diff --git a/migrations/versions/f878073e1b4a_.py b/migrations/versions/f878073e1b4a_.py new file mode 100644 index 0000000..ac683b8 --- /dev/null +++ b/migrations/versions/f878073e1b4a_.py @@ -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 ###