migrate entity