Added method setSchemaVersion()

This commit is contained in:
dankito 2024-10-16 19:35:28 +02:00
parent 5af6cc82fc
commit 166219d7e3
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,10 @@ actual fun createSqlDriverDriver(dbName: String, schema: SqlSchema<QueryResult.A
} }
private fun setSchemaVersion(driver: SqlDriver, schemaVersion: Int) {
driver.execute(null, "PRAGMA schema_version=$schemaVersion;", 0)
}
private fun determineDataDirectory(): File { private fun determineDataDirectory(): File {
val currentDir = Path(System.getProperty("user.dir")) val currentDir = Path(System.getProperty("user.dir"))