Fixes #4091: transform the igration script to create the data at migrati...

...on time