* Delete related variants when deleting the segment Closes #155 * Fix typo * Fix migration ordering * Split metadata migrations