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 ###