"""add topics

Revision ID: 816ea3631582
Revises: 37a124b0099b
Create Date: 2021-03-13 14:20:10.044131

"""
from alembic import op
import sqlalchemy as sa
import bot


# revision identifiers, used by Alembic.
revision = "816ea3631582"
down_revision = "37a124b0099b"
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table(
        "topics",
        sa.Column("content", sa.Text(), nullable=False),
        sa.Column("last_synced_at", bot.database.TIMESTAMP(timezone=True), nullable=True),
        sa.PrimaryKeyConstraint("content"),
    )
    # ### end Alembic commands ###


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

[((33, 4, 33, 27), 'alembic.op.drop_table', 'op.drop_table', ({(33, 18, 33, 26): '"""topics"""'}, {}), "('topics')", False, 'from alembic import op\n'), ((26, 8, 26, 42), 'sqlalchemy.PrimaryKeyConstraint', 'sa.PrimaryKeyConstraint', ({(26, 32, 26, 41): '"""content"""'}, {}), "('content')", True, 'import sqlalchemy as sa\n'), ((24, 29, 24, 38), 'sqlalchemy.Text', 'sa.Text', ({}, {}), '()', True, 'import sqlalchemy as sa\n'), ((25, 36, 25, 73), 'bot.database.TIMESTAMP', 'bot.database.TIMESTAMP', (), '', False, 'import bot\n')]