66e901bb9b
Setting the version number only when all migrations are done means that the version will be wrong if a migration fails. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>