Skip to content

Commit 8d13dfa

Browse files
authored
Merge pull request #223 from JetBrains/graph-store-test-speedup
XD-1165 removed unconditional modification in schema.
2 parents 4f8216d + 4bfa511 commit 8d13dfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

query/src/main/kotlin/jetbrains/exodus/query/metadata/OrientDbSchemaInitializer.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,8 @@ internal class OrientDbSchemaInitializer(
585585
if (indexForEverySimpleProperty) {
586586
addIndex(simplePropertyIndex(name, propertyName))
587587
}
588-
if (primitiveTypeName.lowercase() == "boolean"){
589-
oProperty.setDefaultValue("false")
588+
if (primitiveTypeName.lowercase() == "boolean" && oProperty.defaultValue == null){
589+
oProperty.defaultValue = "false"
590590
}
591591
}
592592

0 commit comments

Comments
 (0)