38 lines
959 B
Python
38 lines
959 B
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: b6667aa4e705
|
||
|
Revises:
|
||
|
Create Date: 2017-03-04 11:32:13.728984
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = 'b6667aa4e705'
|
||
|
down_revision = None
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.create_table('matrix_user',
|
||
|
sa.Column('id', sa.Integer(), nullable=False),
|
||
|
sa.Column('matrix_id', sa.Text(), nullable=True),
|
||
|
sa.Column('room_id', sa.Text(), nullable=True),
|
||
|
sa.Column('pnut_id', sa.Text(), nullable=True),
|
||
|
sa.Column('pnut_token', sa.Text(), nullable=True),
|
||
|
sa.PrimaryKeyConstraint('id'),
|
||
|
sa.UniqueConstraint('matrix_id'),
|
||
|
sa.UniqueConstraint('pnut_id')
|
||
|
)
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.drop_table('matrix_user')
|
||
|
# ### end Alembic commands ###
|