@@ -387,21 +387,22 @@ static MIGRATIONS: &[Migration] = &[
387387 ) ,
388388 // Add target as a unique constraint, defaulting to 'x86_64-unknown-linux-gnu'
389389 Migration :: without_foreign_key_constraints (
390- r#"
390+ r#"
391391 create table pstat_series_with_target(
392392 id integer primary key not null,
393393 crate text not null references benchmark(name) on delete cascade on update cascade,
394394 profile text not null,
395395 scenario text not null,
396396 backend text not null,
397- metric text not null,
398397 target text not null default 'x86_64-unknown-linux-gnu',
398+ metric text not null,
399399 UNIQUE(crate, profile, scenario, backend, target, metric)
400400 );
401- insert into pstat_series_with_target select id, crate, profile, scenario, backend, metric, 'x86_64-unknown-linux-gnu' from pstat_series;
401+ insert into pstat_series_with_target select id, crate, profile, scenario, backend, 'x86_64-unknown-linux-gnu', metric from pstat_series;
402402 drop table pstat_series;
403403 alter table pstat_series_with_target rename to pstat_series;
404- "# ) ,
404+ "# ,
405+ ) ,
405406] ;
406407
407408#[ async_trait:: async_trait]
@@ -517,7 +518,9 @@ impl Connection for SqliteConnection {
517518 . collect ( ) ;
518519 let pstat_series = self
519520 . raw ( )
520- . prepare ( "select id, crate, profile, scenario, backend, target, metric from pstat_series;" )
521+ . prepare (
522+ "select id, crate, profile, scenario, backend, target, metric from pstat_series;" ,
523+ )
521524 . unwrap ( )
522525 . query_map ( params ! [ ] , |row| {
523526 Ok ( (
0 commit comments