@Service public class MolgenisVersionService extends Object
DataSource.
The current Molgenis version is found in the server properties under key molgenis.version.
If this key is not present, we're either looking at a molgenis 1.4.3 or a new install should be run. We'll check the
datasource for the presence of a mysql entities table. If no MolgenisUser table exists in the
datasource's database, a new install is assumed, so the version will be set to the current version and no upgrade
will take place.
This is done so we can upgrade the database. If we store it in the database we must access the database to get it but we must upgrade before we can access the database...
| Modifier and Type | Field and Description |
|---|---|
static int |
CURRENT_VERSION |
| Constructor and Description |
|---|
MolgenisVersionService(DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMolgenisVersionFromServerProperties()
Get the molgenis version from the molgenis server properties.
|
void |
updateToCurrentVersion() |
void |
updateToVersion(int version) |
public static final int CURRENT_VERSION
@Autowired public MolgenisVersionService(DataSource dataSource)
Copyright © 2016. All Rights Reserved.