fix bug 1057286 - make migration 0004 work for new and existing environments