public static void markBootstrapMigrationsComplete() {
        LOGGER.debug("Marking DB migration as complete");

        final boolean didSet = HAVE_BOOTSTRAP_MIGRATIONS_BEEN_DONE.compareAndSet(false, true);

        if (!didSet) {
            throw new RuntimeException("Error marking DB migration as complete, already set to true.");
        }
    }
Call this once when all the migrations have been done or when you detect that they have previously
been run.
stroom-util/src/main/java/stroom/util/db/DbMigrationState.java