[BUGFIX] Migrations: copying from empty table was failing.