pnut-matrix/migrations/versions/f878073e1b4a_.py

41 lines
1.1 KiB
Python
Raw Normal View History

2017-05-04 06:11:41 +00:00
"""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 ###