38 lines
989 B
Python
38 lines
989 B
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: 744f11d26259
|
||
|
Revises: f878073e1b4a
|
||
|
Create Date: 2017-05-25 09:51:32.238059
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '744f11d26259'
|
||
|
down_revision = 'f878073e1b4a'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.create_table('matrix_room2',
|
||
|
sa.Column('id', sa.Integer(), nullable=False),
|
||
|
sa.Column('room_id', sa.Text(), nullable=True),
|
||
|
sa.Column('pnut_chan', sa.Text(), nullable=True),
|
||
|
sa.Column('pnut_since', sa.Text(), nullable=True),
|
||
|
sa.Column('pnut_write', sa.Boolean(), nullable=True),
|
||
|
sa.PrimaryKeyConstraint('id'),
|
||
|
sa.UniqueConstraint('pnut_chan'),
|
||
|
sa.UniqueConstraint('room_id')
|
||
|
)
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.drop_table('matrix_room2')
|
||
|
# ### end Alembic commands ###
|