r1039 - in trunk/topia-service/src: java/org/codelutin/topia/migration resources
Author: bpoussin Date: 2008-08-11 14:25:22 +0000 (Mon, 11 Aug 2008) New Revision: 1039 Added: trunk/topia-service/src/resources/oldmappings/ Modified: trunk/topia-service/src/java/org/codelutin/topia/migration/MigrationServiceImpl.java Log: Correction erreur d'initialisation de variable. En fait si le schema de version n'etait pas trouve et que l'app etait bien en version 0 (donc rien a faire), il y avait tout de meme une Exception de leve de mauvaise init topia Modified: trunk/topia-service/src/java/org/codelutin/topia/migration/MigrationServiceImpl.java =================================================================== --- trunk/topia-service/src/java/org/codelutin/topia/migration/MigrationServiceImpl.java 2008-08-11 08:39:30 UTC (rev 1038) +++ trunk/topia-service/src/java/org/codelutin/topia/migration/MigrationServiceImpl.java 2008-08-11 14:25:22 UTC (rev 1039) @@ -243,7 +243,7 @@ // tel if migration is needed boolean bMigrationNeeded = false; // tel if migration is wanted - MigrationChoice bMigrationWanted = null; + MigrationChoice bMigrationWanted = MigrationChoice.NO_MIGRATION; // test if schema exist in database... // if not, the schema must be created @@ -271,6 +271,7 @@ logger.info("Handler choose : " + bMigrationWanted); } else { + bMigrationNeeded = false; logger.info("Database is up to date, no migration needed."); }
participants (1)
-
bpoussin@users.labs.libre-entreprise.org