This repository has been archived by the owner on Mar 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from pageuppeople-opensource/feature/SP-149-pe…
…rsist-batch-count SP-149 - Persist count of batches per model and per execution
- Loading branch information
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
rdl/alembic/versions/bb0c5e8d05e2_add_batches_processed_count.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"""add batches_processed count | ||
Revision ID: bb0c5e8d05e2 | ||
Revises: 00f2b412576b | ||
Create Date: 2019-07-26 13:56:06.412042 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'bb0c5e8d05e2' | ||
down_revision = '00f2b412576b' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.add_column('execution', sa.Column('batches_processed', sa.Integer(), nullable=True), schema='rdl') | ||
op.add_column('execution_model', sa.Column('batches_processed', sa.Integer(), nullable=True), schema='rdl') | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('execution_model', 'batches_processed', schema='rdl') | ||
op.drop_column('execution', 'batches_processed', schema='rdl') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters