Skip to content
Snippets Groups Projects

Save the delivery URL and path in the capability layer

Merged Daniel Lyons requested to merge workflow-parse-delivery-json into main
5 files
+ 91
7
Compare changes
  • Side-by-side
  • Inline
Files
5
"""add-delivery-results-to-capability-execution
Revision ID: 68d0883785b7
Revises: cb49c557f7e8
Create Date: 2021-04-12 10:30:16.482620
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "68d0883785b7"
down_revision = "cb49c557f7e8"
branch_labels = None
depends_on = None
def upgrade():
op.add_column(
"capability_executions",
sa.Column("delivery_url", sa.String, comment="URL to the results, if possible"),
)
op.add_column(
"capability_executions",
sa.Column("delivery_path", sa.String, comment="Path to the results on disk"),
)
def downgrade():
op.drop_column("capability_executions", "delivery_url")
op.drop_column("capability_executions", "delivery_path")
Loading