@@ -163,8 +163,8 @@ static MIGRATIONS: &[&str] = &[
163163 create table collector_progress(
164164 aid smallint not null references artifact(id) on delete cascade on update cascade,
165165 step text not null,
166- start timestamptz,
167- end timestamptz
166+ start_time timestamptz,
167+ end_time timestamptz
168168 );
169169 "# ,
170170] ;
@@ -783,7 +783,7 @@ where
783783 async fn collector_start ( & self , aid : ArtifactIdNumber , steps : & [ String ] ) {
784784 self . conn ( )
785785 . execute (
786- "delete from collector_progress where start is null or end is null;" ,
786+ "delete from collector_progress where start_time is null or end_time is null;" ,
787787 & [ ] ,
788788 )
789789 . await
@@ -802,8 +802,8 @@ where
802802 async fn collector_start_step ( & self , aid : ArtifactIdNumber , step : & str ) {
803803 self . conn ( )
804804 . execute (
805- "update collector_progress set start = statement_timestamp() \
806- where aid = $1 and step = $2 and start is null and end is null;",
805+ "update collector_progress set start_time = statement_timestamp() \
806+ where aid = $1 and step = $2 and start_time is null and end_time is null;",
807807 & [ & ( aid. 0 as i16 ) , & step] ,
808808 )
809809 . await
@@ -812,8 +812,8 @@ where
812812 async fn collector_end_step ( & self , aid : ArtifactIdNumber , step : & str ) {
813813 self . conn ( )
814814 . execute (
815- "update collector_progress set end = statement_timestamp() \
816- where aid = $1 and step = $2 and start is not null and end is null;",
815+ "update collector_progress set end_time = statement_timestamp() \
816+ where aid = $1 and step = $2 and start_time is not null and end_time is null;",
817817 & [ & ( aid. 0 as i16 ) , & step] ,
818818 )
819819 . await
0 commit comments