update database schema
This commit is contained in:
parent
3486c19228
commit
ea684e1462
1 changed files with 40 additions and 0 deletions
40
migrations/versions/f878073e1b4a_.py
Normal file
40
migrations/versions/f878073e1b4a_.py
Normal 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 ###
|
Loading…
Reference in a new issue