2324252627282930313233
*/ public class Upgrader { public static void upgrade() throws SQLException, IllegalAccessException, InstantiationException, ClassNotFoundException { Database db = new Database(null); if(dbMake(db)) { db.commit(); db.shutdown(); db = dbMigrate(); } db.commit(); db.shutdown();
2728293031323334353637
if(dbMake(db)) { db.commit(); db.shutdown(); db = dbMigrate(); } db.commit(); db.shutdown(); } private static Database dbMigrate() throws IllegalAccessException, SQLException, ClassNotFoundException, InstantiationException { Table schemaInfo = new Table("schema_info");