File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
shared/src/main/kotlin/org/javacs/kt/database Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 4040 excludes : *standardExcludes
4141 MaxLineLength :
4242 active : false
43+ ReturnCount :
44+ active : true
45+ max : 3 # Maximum allowed return statements in a function
4346 WildcardImport :
4447 excludeImports :
4548 - java.util.*
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class DatabaseService {
3737 db = getDbFromFile(storagePath)
3838
3939 val currentVersion = transaction(db) {
40- SchemaUtils .createMissingTablesAndColumns (DatabaseMetadata )
40+ SchemaUtils .create (DatabaseMetadata )
4141
4242 DatabaseMetadataEntity .all().firstOrNull()?.version ? : 0
4343 }
@@ -49,7 +49,7 @@ class DatabaseService {
4949 db = getDbFromFile(storagePath)
5050
5151 transaction(db) {
52- SchemaUtils .createMissingTablesAndColumns (DatabaseMetadata )
52+ SchemaUtils .create (DatabaseMetadata )
5353
5454 DatabaseMetadata .deleteAll()
5555 DatabaseMetadata .insert { it[version] = DB_VERSION }
You can’t perform that action at this time.
0 commit comments