<reponame>TheKidDewey/microblog
"""adding topics sheet

Revision ID: 92baf238a95b
Revises: 908243da03d0
Create Date: 2021-11-11 01:37:41.759252

"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import sqlite

# revision identifiers, used by Alembic.
revision = '92baf238a95b'
down_revision = '908243da03d0'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('project_cluster_scrape',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('project_name', sa.String(length=60), nullable=True),
    sa.Column('keyword', sa.Text(), nullable=False),
    sa.Column('rank', sa.Integer(), nullable=True),
    sa.Column('url', sa.Text(), nullable=False),
    sa.Column('search_volume', sa.Integer(), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.drop_table('project_json')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('project_json',
    sa.Column('id', sa.INTEGER(), nullable=False),
    sa.Column('project_name', sa.VARCHAR(length=60), nullable=True),
    sa.Column('data', sqlite.JSON(), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.drop_table('project_cluster_scrape')
    # ### end Alembic commands ###
