@@ -0,0 +1,434 @@
+package org.openlca.core.database.upgrades;%0A%0Aimport org.openlca.core.database.IDatabase;%0A%0Apublic enum VersionState %7B%0A%0A%09UP_TO_DATE,%0A%0A%09NEEDS_UPGRADE,%0A%0A%09HIGHER_VERSION,%0A%0A%09ERROR;%0A%0A%09public static VersionState get(IDatabase db) %7B%0A%09%09int v = db.getVersion();%0A%09%09if (v %3C 1)%0A%09%09%09return ERROR;%0A%09%09if (v == IDatabase.CURRENT_VERSION)%0A%09%09%09return UP_TO_DATE;%0A%09%09if (v %3C IDatabase.CURRENT_VERSION)%0A%09%09%09return NEEDS_UPGRADE;%0A%09%09return HIGHER_VERSION;%0A%09%7D%0A%0A%7D%0A

add VersionState from olca-updates