fix clean-%

This commit is contained in:
Christian Dietrich
2021-08-23 16:30:54 +02:00
parent 778c61ac0c
commit f17065ede9

View File

@ -5,12 +5,15 @@ variant=$1;
variant_ids=`echo "select id from variant where variant like '"${variant}"';" | mysql -N ` variant_ids=`echo "select id from variant where variant like '"${variant}"';" | mysql -N `
variant_ids=`echo ${variant_ids} | tr " " ","` variant_ids=`echo ${variant_ids} | tr " " ","`
echo Delete variants $variant_ids echo Delete variants: $variant_ids
if [ -n "$variant_ids" ]; then
echo "delete from result_GenericExperimentMessage where pilot_id in (select id from fsppilot where variant_id in (${variant_ids}));" | mysql echo "delete from result_GenericExperimentMessage where pilot_id in (select id from fsppilot where variant_id in (${variant_ids}));" | mysql
echo "delete from fspgroup where variant_id in (${variant_ids});" | mysql echo "delete from fspgroup where variant_id in (${variant_ids});" | mysql
echo "delete from fsppilot where variant_id in (${variant_ids});" | mysql echo "delete from fsppilot where variant_id in (${variant_ids});" | mysql
echo "delete from trace where variant_id in (${variant_ids});" | mysql echo "delete from trace where variant_id in (${variant_ids});" | mysql
fi