]> gerrit.simantics Code Review - simantics/platform.git/commit
Platform startup now reads the used database driver from <ws>/db.ini 20/120/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 7 Oct 2016 14:19:48 +0000 (17:19 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 7 Oct 2016 14:19:48 +0000 (17:19 +0300)
commit27d90ffb0fb9b2ed86be12c5444ad2a71a8c81d9
tree94d92a5600e8558a51c3688c56deb4784213f826
parente6b94ace582761493086edb67f3dba5548523801
Platform startup now reads the used database driver from <ws>/db.ini

Previously it was possible to use the wrong database driver for a
workspace if the default driver was changed in the code. Now,
SimanticsPlatform.setupDatabase will read the database driver used for
the opened workspace from an ini file <workspace>/db.ini. If the file
does not exist, it will write it with the following data:
[driver]
id = <database-id-value>

refs #6747

Change-Id: Ie304b480095657e25e694a81cdd5085a4d2c17e9
bundles/org.simantics/META-INF/MANIFEST.MF
bundles/org.simantics/src/org/simantics/SimanticsPlatform.java
features/org.simantics.platform.feature/feature.xml