b087ce8b529f_create_latest_task_run_table.py 880 B

1234567891011121314151617181920212223242526272829303132333435
  1. """create_latest_task_run_table
  2. Revision ID: b087ce8b529f
  3. Revises: 91a938bfa5a8
  4. Create Date: 2018-06-14 12:06:05.037547
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = "b087ce8b529f"
  10. down_revision = "91a938bfa5a8"
  11. branch_labels = None
  12. depends_on = None
  13. def upgrade():
  14. # ### commands auto generated by Alembic - please adjust! ###
  15. op.create_table(
  16. "latest_task_run",
  17. sa.Column("name", sa.String(length=80), nullable=False),
  18. sa.Column("datetime", sa.DateTime(timezone=True), nullable=True),
  19. sa.Column("status", sa.Boolean(), nullable=True),
  20. sa.PrimaryKeyConstraint("name"),
  21. )
  22. # ### end Alembic commands ###
  23. def downgrade():
  24. # ### commands auto generated by Alembic - please adjust! ###
  25. op.drop_table("latest_task_run")
  26. # ### end Alembic commands ###