[FIX] upgrade 2 conditional db generator.