diff --git a/node/src/main/kotlin/net/corda/node/services/schema/NodeSchemaService.kt b/node/src/main/kotlin/net/corda/node/services/schema/NodeSchemaService.kt index 108488479e..6f452ba8fe 100644 --- a/node/src/main/kotlin/net/corda/node/services/schema/NodeSchemaService.kt +++ b/node/src/main/kotlin/net/corda/node/services/schema/NodeSchemaService.kt @@ -52,7 +52,19 @@ class NodeSchemaService(extraSchemas: Set = emptySet()) : SchemaSe ContractUpgradeServiceImpl.DBContractUpgrade::class.java, RunOnceService.MutualExclusion::class.java )){ - override val migrationResource = "node-services.changelog-master" + override val migrationResource = "node-core.changelog-master" + } + + // Entities used by a Notary + object NodeNotary + + object NodeNotaryV1 : MappedSchema(schemaFamily = NodeNotary.javaClass, version = 1, + mappedTypes = listOf(PersistentUniquenessProvider.PersistentUniqueness::class.java, + PersistentUniquenessProvider.PersistentNotaryCommit::class.java, + RaftUniquenessProvider.RaftState::class.java, + BFTNonValidatingNotaryService.PersistedCommittedState::class.java + )){ + override val migrationResource = "node-notary.changelog-master" } // Required schemas are those used by internal Corda services diff --git a/node/src/main/resources/migration/node-services.changelog-init.xml b/node/src/main/resources/migration/node-core.changelog-init.xml similarity index 76% rename from node/src/main/resources/migration/node-services.changelog-init.xml rename to node/src/main/resources/migration/node-core.changelog-init.xml index 8401199abc..fac96b810d 100644 --- a/node/src/main/resources/migration/node-services.changelog-init.xml +++ b/node/src/main/resources/migration/node-core.changelog-init.xml @@ -17,20 +17,6 @@ - - - - - - - - - - - - - - @@ -81,20 +67,6 @@ - - - - - - - - - - - - - - @@ -104,15 +76,6 @@ - - - - - - - - - @@ -156,10 +119,6 @@ - - - @@ -181,18 +140,10 @@ - - - - - - diff --git a/node/src/main/resources/migration/node-services.changelog-master.xml b/node/src/main/resources/migration/node-core.changelog-master.xml similarity index 89% rename from node/src/main/resources/migration/node-services.changelog-master.xml rename to node/src/main/resources/migration/node-core.changelog-master.xml index 3dd7efe052..5c9b180a49 100644 --- a/node/src/main/resources/migration/node-services.changelog-master.xml +++ b/node/src/main/resources/migration/node-core.changelog-master.xml @@ -4,6 +4,6 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd"> - + diff --git a/node/src/main/resources/migration/node-notary.changelog-init.xml b/node/src/main/resources/migration/node-notary.changelog-init.xml new file mode 100644 index 0000000000..440e93e7fb --- /dev/null +++ b/node/src/main/resources/migration/node-notary.changelog-init.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/node/src/main/resources/migration/node-notary.changelog-master.xml b/node/src/main/resources/migration/node-notary.changelog-master.xml new file mode 100644 index 0000000000..e0d8e3270a --- /dev/null +++ b/node/src/main/resources/migration/node-notary.changelog-master.xml @@ -0,0 +1,9 @@ + + + + + +