From b09a57d768691e3e4fc4d394155ebea50fbd08ec Mon Sep 17 00:00:00 2001 From: Christian Sailer Date: Tue, 12 Jun 2018 15:40:25 +0100 Subject: [PATCH] ENT-1943 non clustered primary keys (#880) * ENT-1943 Add liquibase change sets to remove clustered indices from primary keys * ENT-1943 Add liquibase change sets to remove clustered indices from primary keys * Don't apply non-clustered PK change when using H2 * Move primary key changesets to separate file for core migration files Use `onValidationFail` rather than precondition to exclude these changes from H2 * Remove/readd foreign key constraint to make SQL server less unhappy * Fix linear states schema migration * Fix notary states changelog issues * Remove v3-GA from master changelog --- .../migration/cash.changelog-init.xml | 6 +++ .../commercial-paper.changelog-init.xml | 6 +++ .../migration/node-core.changelog-master.xml | 1 + .../migration/node-core.changelog-pkey.xml | 51 +++++++++++++++++++ .../node-notary.changelog-master.xml | 2 + .../migration/node-notary.changelog-pkey.xml | 31 +++++++++++ .../vault-schema.changelog-master.xml | 1 + .../migration/vault-schema.changelog-pkey.xml | 45 ++++++++++++++++ .../migration/cash-pt.changelog-init.xml | 5 ++ .../commercial-paper-pt.changelog-init.xml | 6 +++ 10 files changed, 154 insertions(+) create mode 100644 node/src/main/resources/migration/node-core.changelog-pkey.xml create mode 100644 node/src/main/resources/migration/node-notary.changelog-pkey.xml create mode 100644 node/src/main/resources/migration/vault-schema.changelog-pkey.xml diff --git a/finance/src/main/resources/migration/cash.changelog-init.xml b/finance/src/main/resources/migration/cash.changelog-init.xml index b6eff7f527..21c4ec6493 100644 --- a/finance/src/main/resources/migration/cash.changelog-init.xml +++ b/finance/src/main/resources/migration/cash.changelog-init.xml @@ -38,4 +38,10 @@ + + + + + diff --git a/finance/src/main/resources/migration/commercial-paper.changelog-init.xml b/finance/src/main/resources/migration/commercial-paper.changelog-init.xml index 1e14c6d80b..e24069dd0d 100644 --- a/finance/src/main/resources/migration/commercial-paper.changelog-init.xml +++ b/finance/src/main/resources/migration/commercial-paper.changelog-init.xml @@ -46,4 +46,10 @@ + + + + + diff --git a/node/src/main/resources/migration/node-core.changelog-master.xml b/node/src/main/resources/migration/node-core.changelog-master.xml index c3f3f61022..398350560d 100644 --- a/node/src/main/resources/migration/node-core.changelog-master.xml +++ b/node/src/main/resources/migration/node-core.changelog-master.xml @@ -17,5 +17,6 @@ + diff --git a/node/src/main/resources/migration/node-core.changelog-pkey.xml b/node/src/main/resources/migration/node-core.changelog-pkey.xml new file mode 100644 index 0000000000..57ec23dab5 --- /dev/null +++ b/node/src/main/resources/migration/node-core.changelog-pkey.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/node/src/main/resources/migration/node-notary.changelog-master.xml b/node/src/main/resources/migration/node-notary.changelog-master.xml index 2071ac683a..f5e83a39cc 100644 --- a/node/src/main/resources/migration/node-notary.changelog-master.xml +++ b/node/src/main/resources/migration/node-notary.changelog-master.xml @@ -15,6 +15,8 @@ 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-pkey.xml b/node/src/main/resources/migration/node-notary.changelog-pkey.xml new file mode 100644 index 0000000000..23c855dee2 --- /dev/null +++ b/node/src/main/resources/migration/node-notary.changelog-pkey.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/node/src/main/resources/migration/vault-schema.changelog-master.xml b/node/src/main/resources/migration/vault-schema.changelog-master.xml index feefdc18dc..aad8e65fe1 100644 --- a/node/src/main/resources/migration/vault-schema.changelog-master.xml +++ b/node/src/main/resources/migration/vault-schema.changelog-master.xml @@ -17,5 +17,6 @@ + diff --git a/node/src/main/resources/migration/vault-schema.changelog-pkey.xml b/node/src/main/resources/migration/vault-schema.changelog-pkey.xml new file mode 100644 index 0000000000..783a6aa52d --- /dev/null +++ b/node/src/main/resources/migration/vault-schema.changelog-pkey.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/perftestcordapp/src/main/resources/migration/cash-pt.changelog-init.xml b/perftestcordapp/src/main/resources/migration/cash-pt.changelog-init.xml index eeb6751f34..1632a7f8b8 100644 --- a/perftestcordapp/src/main/resources/migration/cash-pt.changelog-init.xml +++ b/perftestcordapp/src/main/resources/migration/cash-pt.changelog-init.xml @@ -38,4 +38,9 @@ + + + + diff --git a/perftestcordapp/src/main/resources/migration/commercial-paper-pt.changelog-init.xml b/perftestcordapp/src/main/resources/migration/commercial-paper-pt.changelog-init.xml index 23df8119d5..49368027a9 100644 --- a/perftestcordapp/src/main/resources/migration/commercial-paper-pt.changelog-init.xml +++ b/perftestcordapp/src/main/resources/migration/commercial-paper-pt.changelog-init.xml @@ -46,4 +46,10 @@ + + + + +