pub fn define_history_migration_functions(c: &Connection) -> Result<()>