Add total run time to the runs table

This commit adds calculating the total run time in secs and storing
that in the runs table to the script. This also converts the column
in the runs table to be a float not an int. Normally this would
require a separate migration but since I just pushed this I'm
assuming I'm not going to break existing DBs.
This commit is contained in:
Matthew Treinish
2014-06-14 13:27:31 -04:00
parent 082715bb28
commit fe76e50b61
4 changed files with 22 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ def upgrade():
sa.Column('skips', sa.Integer()),
sa.Column('fails', sa.Integer()),
sa.Column('passes', sa.Integer()),
sa.Column('run_time', sa.Integer()),
sa.Column('run_time', sa.Float()),
sa.Column('artifacts', sa.Text()),
mysql_engine=True)