c7fc082b1d55_.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. """empty message
  2. Revision ID: c7fc082b1d55
  3. Revises: afb044a83b98
  4. Create Date: 2020-02-06 13:40:37.665770
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = 'c7fc082b1d55'
  10. down_revision = 'afb044a83b98'
  11. branch_labels = None
  12. depends_on = None
  13. def upgrade():
  14. # ### commands auto generated by Alembic - please adjust! ###
  15. op.add_column('teststep_executions', sa.Column('comparision', sa.String(), nullable=True))
  16. op.add_column('teststep_executions', sa.Column('locator', sa.String(), nullable=True))
  17. op.add_column('teststep_executions', sa.Column('optional', sa.Boolean(), nullable=True))
  18. op.add_column('teststep_executions', sa.Column('release', sa.String(), nullable=True))
  19. op.add_column('teststep_executions', sa.Column('timeout', sa.Float(precision='5,2'), nullable=True))
  20. op.add_column('teststep_executions', sa.Column('value', sa.String(), nullable=True))
  21. op.add_column('teststep_executions', sa.Column('value2', sa.String(), nullable=True))
  22. # ### end Alembic commands ###
  23. def downgrade():
  24. # ### commands auto generated by Alembic - please adjust! ###
  25. op.drop_column('teststep_executions', 'value2')
  26. op.drop_column('teststep_executions', 'value')
  27. op.drop_column('teststep_executions', 'timeout')
  28. op.drop_column('teststep_executions', 'release')
  29. op.drop_column('teststep_executions', 'optional')
  30. op.drop_column('teststep_executions', 'locator')
  31. op.drop_column('teststep_executions', 'comparision')
  32. # ### end Alembic commands ###