37 lines
949 B
Python
37 lines
949 B
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: d2033352cfdf
|
||
|
Revises: b6667aa4e705
|
||
|
Create Date: 2017-03-04 12:52:51.625451
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = 'd2033352cfdf'
|
||
|
down_revision = 'b6667aa4e705'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.create_table('matrix_room',
|
||
|
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('room_id')
|
||
|
)
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.drop_table('matrix_room')
|
||
|
# ### end Alembic commands ###
|