fail-cleanup-db.sh: cleanup "symbol" table as well
(The "symbol" is currently only created by some inofficial scripts, but may become part of the Fail* core at some point.) Change-Id: If0b3e6cdd6b6ca865abb67382de128e7a27f19ab
This commit is contained in:
@ -146,4 +146,17 @@ EOT
|
|||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if table_exists symbol
|
||||||
|
then
|
||||||
|
echo -n "removing widowed entries in symbol ..."
|
||||||
|
echo " "$(
|
||||||
|
$MYSQL $DB <<EOT
|
||||||
|
DELETE FROM symbol
|
||||||
|
WHERE variant_id NOT IN
|
||||||
|
(SELECT id FROM variant);
|
||||||
|
SELECT ROW_COUNT() AS "deleted rows:";
|
||||||
|
EOT
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
echo "done. Consider running \`mysqloptimize $DB' now."
|
echo "done. Consider running \`mysqloptimize $DB' now."
|
||||||
|
|||||||
Reference in New Issue
Block a user