<gh_stars>0
"""rename revision to commit

Revision ID: a2974173ff5b
Revises: <PASSWORD>
Create Date: 2020-11-14 10:35:57.799486

"""

# revision identifiers, used by Alembic.
revision = 'a2974173ff5b'
down_revision = '<PASSWORD>'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.rename_table('revision', 'commit')
    op.alter_column('commit', 'commit', new_column_name='sha')
    op.alter_column('file', 'revision_key', new_column_name='commit_key')
    op.alter_column('message', 'revision_key', new_column_name='commit_key')
    op.alter_column('pending_cherry_pick', 'revision_key', new_column_name='commit_key')
    op.alter_column('check', 'revision_key', new_column_name='commit_key')
    pass


def downgrade():
    pass

"""rename revision to commit

Revision ID: a2974173ff5b
Revises: <PASSWORD>
Create Date: 2020-11-14 10:35:57.799486

"""

# revision identifiers, used by Alembic.
revision = 'a2974173ff5b'
down_revision = '<PASSWORD>'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.rename_table('revision', 'commit')
    op.alter_column('commit', 'commit', new_column_name='sha')
    op.alter_column('file', 'revision_key', new_column_name='commit_key')
    op.alter_column('message', 'revision_key', new_column_name='commit_key')
    op.alter_column('pending_cherry_pick', 'revision_key', new_column_name='commit_key')
    op.alter_column('check', 'revision_key', new_column_name='commit_key')
    pass


def downgrade():
    pass
rename revision to commit  Revision ID: a2974173ff5b Revises: <PASSWORD> Create Date: 2020-11-14 10:35:57.799486 # revision identifiers, used by Alembic.