pnut-matrix/migrations/versions/d2033352cfdf_.py

37 lines
949 B
Python
Raw Normal View History

2017-03-04 20:54:43 +00:00
"""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 ###