Skip to content
Snippets Groups Projects
Commit af3e211c authored by Nathan Hertz's avatar Nathan Hertz
Browse files

Added `ingested` column to capability requests with the properties:

- type: bool
- null: not null
- default: false
parent dd6f7839
No related branches found
No related tags found
1 merge request!339WS-516: Add ingest-complete flag to capability request table
Pipeline #2181 passed
"""add ingest-complete flag to capability requests
Revision ID: 0bca0d8b3564
Revises: a7c2b4682aae
Create Date: 2021-07-13 16:01:10.908563
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "0bca0d8b3564"
down_revision = "a7c2b4682aae"
branch_labels = None
depends_on = None
def upgrade():
op.execute("ALTER TABLE capability_requests ADD COLUMN ingested bool NOT NULL DEFAULT false")
def downgrade():
op.execute("ALTER TABLE capability_requests DROP COLUMN IF EXISTS ingested")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment