"""channel_viewcount_bigint Revision ID: 931fed47cfe9 Revises: 844550f120b1 Create Date: 2019-02-07 15:44:07.614072 """ # revision identifiers, used by Alembic. revision = '931fed47cfe9' down_revision = '844550f120b1' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql def upgrade(): op.execute('''ALTER TABLE yt_artist_channel_stats ALTER COLUMN view_count TYPE bigint;''') ### end Alembic commands ### def downgrade(): op.execute('''ALTER TABLE yt_artist_channel_stats ALTER COLUMN view_count TYPE int;''')