Fixed #21008 -- Made MigrationWriter handle Promise objects.