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 40
40
excludes : *standardExcludes
41
41
MaxLineLength :
42
42
active : false
43
+ ReturnCount :
44
+ active : true
45
+ max : 3 # Maximum allowed return statements in a function
43
46
WildcardImport :
44
47
excludeImports :
45
48
- java.util.*
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class DatabaseService {
37
37
db = getDbFromFile(storagePath)
38
38
39
39
val currentVersion = transaction(db) {
40
- SchemaUtils .createMissingTablesAndColumns (DatabaseMetadata )
40
+ SchemaUtils .create (DatabaseMetadata )
41
41
42
42
DatabaseMetadataEntity .all().firstOrNull()?.version ? : 0
43
43
}
@@ -49,7 +49,7 @@ class DatabaseService {
49
49
db = getDbFromFile(storagePath)
50
50
51
51
transaction(db) {
52
- SchemaUtils .createMissingTablesAndColumns (DatabaseMetadata )
52
+ SchemaUtils .create (DatabaseMetadata )
53
53
54
54
DatabaseMetadata .deleteAll()
55
55
DatabaseMetadata .insert { it[version] = DB_VERSION }
You can’t perform that action at this time.
0 commit comments