Skip to content

Commit eadc327

Browse files
committed
Added 'stage' column
1 parent c0a7682 commit eadc327

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/server/alembic/versions/bfb1262d3195_create_execution_status_table.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def upgrade():
2222
"execution_status",
2323
sa.Column("_id", sa.Integer, primary_key=True),
2424
sa.Column("job_id", sa.Integer, nullable=False),
25+
sa.Column("stage", sa.String(32), nullable=False),
2526
sa.Column("status", sa.String(32), nullable=False),
2627
sa.Column("details", sa.String(128), nullable=False),
2728
sa.Column("update_stamp", sa.DateTime, nullable=False, server_default=func.now())
@@ -40,6 +41,7 @@ def upgrade():
4041
EXECUTE PROCEDURE last_upd_trig();"""
4142
) # Postgres-specific, obviously
4243

44+
op.create_unique_constraint("uq_job_id", "execution_status", ["job_id"])
4345

4446
def downgrade():
4547
op.drop_table("execution_status")

0 commit comments

Comments
 (0)