File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -322,6 +322,26 @@ static MIGRATIONS: &[Migration] = &[
322
322
) ,
323
323
Migration :: new ( "alter table benchmark add column category text not null default ''" ) ,
324
324
Migration :: new ( "alter table pull_request_build add column commit_date timestamp" ) ,
325
+ Migration :: new (
326
+ r#"
327
+ create table runtime_benchmark(
328
+ name text primary key not null
329
+ );
330
+ create table runtime_pstat_series(
331
+ id integer primary key not null,
332
+ benchmark text not null references runtime_benchmark(name) on delete cascade on update cascade,
333
+ metric text not null,
334
+ UNIQUE(benchmark, metric)
335
+ );
336
+ create table runtime_pstat(
337
+ series integer references runtime_pstat_series(id) on delete cascade on update cascade,
338
+ aid integer references artifact(id) on delete cascade on update cascade,
339
+ cid integer references collection(id) on delete cascade on update cascade,
340
+ value double not null,
341
+ PRIMARY KEY(series, aid, cid)
342
+ );
343
+ "# ,
344
+ ) ,
325
345
] ;
326
346
327
347
#[ async_trait:: async_trait]
You can’t perform that action at this time.
0 commit comments