"""Add NoteColours table

Revision ID: a5aada49f2fc
Revises: 2cc37d3cf07f
Create Date: 2022-02-05 17:34:54.880473

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'a5aada49f2fc'
down_revision = '2cc37d3cf07f'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('notecolours',
    sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
    sa.Column('substring', sa.String(length=256), nullable=True),
    sa.Column('hexcolour', sa.String(length=6), nullable=True),
    sa.Column('enabled', sa.Boolean(), nullable=True),
    sa.Column('is_regex', sa.Boolean(), nullable=True),
    sa.Column('is_casesensitive', sa.Boolean(), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('notecolours')
    # ### end Alembic commands ###
