Closed jnguiot closed 4 months ago
Celà semble dû au fait que les init ne détecte pas que le serveur est en migration.
Cf https://github.com/Club-Alpin-Annecy/collectives/blob/01e584ea4e8834fd2ea64b259d5802c9d2769f4b/collectives/utils/init.py#L264
En effet, le ctx.command.name
ici est flask
Apparemment, l'initialisation de l'app se fait avant même l'appel de la commande par click : https://github.com/pallets/flask/blob/b90a4f1f4a370e92054b9cc9db0efcb864f87ebe/src/flask/cli.py#L72C1-L72C36
On test.collectives.cafannecy.fr, the DB upgrade for 01e584e fails. The failing file is https://github.com/Club-Alpin-Annecy/collectives/blob/master/migrations/versions/4a8c2871e259_add_questions.py
The error is