| 12345678910111213141516171819202122232425262728 | """update_resource_trackRevision ID: 431b9069abfcRevises: 931dee70fc71Create Date: 2019-08-21 17:46:47.853150"""from alembic import opimport sqlalchemy as sa# revision identifiers, used by Alembic.revision = '431b9069abfc'down_revision = '931dee70fc71'branch_labels = Nonedepends_on = Nonedef upgrade():    op.add_column('resource_stat', sa.Column('limit_left', sa.SmallInteger(), nullable=True))    op.drop_column('resource_stat', 'percentage_total')    op.drop_column('resource_stat', 'percentage_explored')def downgrade():    op.add_column('resource_stat', sa.Column('percentage_explored', sa.SMALLINT(), autoincrement=False, nullable=True))    op.add_column('resource_stat', sa.Column('percentage_total', sa.SMALLINT(), autoincrement=False, nullable=True))    op.drop_column('resource_stat', 'limit_left')
 |