@@ -93,7 +93,7 @@ class SymbolIndex(
93
93
94
94
init {
95
95
transaction(db) {
96
- SchemaUtils .createMissingTablesAndColumns (Symbols , Locations , Ranges , Positions )
96
+ SchemaUtils .create (Symbols , Locations , Ranges , Positions )
97
97
}
98
98
}
99
99
@@ -111,7 +111,7 @@ class SymbolIndex(
111
111
addDeclarations(allDescriptors(module, exclusions))
112
112
113
113
val finished = System .currentTimeMillis()
114
- val count = Symbols .selectAll( ).first()[Symbols .fqName.count()]
114
+ val count = Symbols .select( Symbols .fqName.count() ).first()[Symbols .fqName.count()]
115
115
LOG .info(" Updated full symbol index in ${finished - started} ms! (${count} symbol(s))" )
116
116
}
117
117
} catch (e: Exception ) {
@@ -134,7 +134,7 @@ class SymbolIndex(
134
134
addDeclarations(add)
135
135
136
136
val finished = System .currentTimeMillis()
137
- val count = Symbols .selectAll( ).first()[Symbols .fqName.count()]
137
+ val count = Symbols .select( Symbols .fqName.count() ).first()[Symbols .fqName.count()]
138
138
LOG .info(" Updated symbol index in ${finished - started} ms! (${count} symbol(s))" )
139
139
}
140
140
} catch (e: Exception ) {
@@ -149,7 +149,7 @@ class SymbolIndex(
149
149
150
150
if (validFqName(descriptorFqn) && (extensionReceiverFqn?.let { validFqName(it) } != false )) {
151
151
Symbols .deleteWhere {
152
- (Symbols . fqName eq descriptorFqn.toString()) and (Symbols . extensionReceiverType eq extensionReceiverFqn?.toString())
152
+ (fqName eq descriptorFqn.toString()) and (extensionReceiverType eq extensionReceiverFqn?.toString())
153
153
}
154
154
} else {
155
155
LOG .warn(" Excluding symbol {} from index since its name is too long" , descriptorFqn.toString())
0 commit comments