Fix migrations for server deploy