Migrate command primary key