Skip to content

Commit 1b17dbf

Browse files
committed
add timestamp for test_run
1 parent efba00d commit 1b17dbf

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/api/handlers/projects/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ class Testruns(Resource):
419419
@auth_required(['user'], allow_if_public=True)
420420
def get(self, project_id, job_id):
421421
result = g.db.execute_many_dict('''
422-
SELECT tr.state, t.name, t.suite, tr.duration, t.build_number, tr.message, tr.stack
422+
SELECT tr.state, t.name, t.suite, tr.duration, t.build_number, tr.message, tr.stack, tr.timestamp
423423
FROM test t
424424
INNER JOIN test_run tr
425425
ON t.id = tr.test_id

src/db/migrations/00013.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE test_run ADD COLUMN timestamp TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now();

0 commit comments

Comments
 (0)