Fix bug in migration table builder.