fix typo in migration, add deprecated annotation