diff --git a/migrations/100100_event.js b/migrations/100100_event.js index 2a392d146..4ac11ebab 100644 --- a/migrations/100100_event.js +++ b/migrations/100100_event.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('event').then(function(exists) { if (!exists) { return knex.schema.createTable('event', (t) => { @@ -37,6 +37,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('event') } diff --git a/migrations/110100_contactType.js b/migrations/110100_contactType.js index 3a768f0a5..a64df999c 100644 --- a/migrations/110100_contactType.js +++ b/migrations/110100_contactType.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('contactType').then(function(exists) { if (!exists) { return knex.schema.createTable('contactType', (t) => { @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('contactType') } diff --git a/migrations/110101_contactType-indexes.js b/migrations/110101_contactType-indexes.js index 3417bdd56..46dfb6b59 100644 --- a/migrations/110101_contactType-indexes.js +++ b/migrations/110101_contactType-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('contactType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('contactType', (t) => { t.dropUnique('name') }) diff --git a/migrations/110200_currency.js b/migrations/110200_currency.js index 7891f4909..a0e646e13 100644 --- a/migrations/110200_currency.js +++ b/migrations/110200_currency.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('currency').then(function(exists) { if (!exists) { return knex.schema.createTable('currency', (t) => { @@ -37,6 +37,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('currency') } diff --git a/migrations/110201_currency-scale.js b/migrations/110201_currency-scale.js index 89bec4b67..69e42ea1e 100644 --- a/migrations/110201_currency-scale.js +++ b/migrations/110201_currency-scale.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('currency').then(function(exists) { if (exists) { return knex.schema.alterTable('currency', (t) => { @@ -34,6 +34,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('currency') } diff --git a/migrations/110300_endpointType.js b/migrations/110300_endpointType.js index 75facd41d..6eeb3ffc8 100644 --- a/migrations/110300_endpointType.js +++ b/migrations/110300_endpointType.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('endpointType').then(function(exists) { if (!exists) { return knex.schema.createTable('endpointType', (t) => { @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('endpointType') } diff --git a/migrations/110301_endpointType-indexes.js b/migrations/110301_endpointType-indexes.js index 797217dbe..5afb0ff2f 100644 --- a/migrations/110301_endpointType-indexes.js +++ b/migrations/110301_endpointType-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('endpointType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('endpointType', (t) => { t.dropUnique('name') }) diff --git a/migrations/110400_ledgerEntryType.js b/migrations/110400_ledgerEntryType.js index 2b4101237..2d5d8e65e 100644 --- a/migrations/110400_ledgerEntryType.js +++ b/migrations/110400_ledgerEntryType.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('ledgerEntryType').then(function(exists) { if (!exists) { return knex.schema.createTable('ledgerEntryType', (t) => { @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('ledgerEntryType') } diff --git a/migrations/110401_ledgerEntryType-indexes.js b/migrations/110401_ledgerEntryType-indexes.js index f34694177..c69b63583 100644 --- a/migrations/110401_ledgerEntryType-indexes.js +++ b/migrations/110401_ledgerEntryType-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('ledgerEntryType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('ledgerEntryType', (t) => { t.dropUnique('name') }) diff --git a/migrations/110450_ledgerAccountType.js b/migrations/110450_ledgerAccountType.js index bedb4e344..b5b7b1f20 100644 --- a/migrations/110450_ledgerAccountType.js +++ b/migrations/110450_ledgerAccountType.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('ledgerAccountType').then(function(exists) { if (!exists) { return knex.schema.createTable('ledgerAccountType', (t) => { @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('ledgerAccountType') } diff --git a/migrations/110451_ledgerAccountType-indexes.js b/migrations/110451_ledgerAccountType-indexes.js index 10f5b6a0e..483fd2b4a 100644 --- a/migrations/110451_ledgerAccountType-indexes.js +++ b/migrations/110451_ledgerAccountType-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('ledgerAccountType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('ledgerAccountType', (t) => { t.dropUnique('name') }) diff --git a/migrations/110500_participantLimitType.js b/migrations/110500_participantLimitType.js index c8b6213ad..90f36fce9 100644 --- a/migrations/110500_participantLimitType.js +++ b/migrations/110500_participantLimitType.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantLimitType').then(function(exists) { if (!exists) { return knex.schema.createTable('participantLimitType', (t) => { @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantLimitType') } diff --git a/migrations/110501_participantLimitType-indexes.js b/migrations/110501_participantLimitType-indexes.js index 8ab576bc4..0678cfef8 100644 --- a/migrations/110501_participantLimitType-indexes.js +++ b/migrations/110501_participantLimitType-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participantLimitType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participantLimitType', (t) => { t.dropUnique('name') }) diff --git a/migrations/110600_transferParticipantRoleType.js b/migrations/110600_transferParticipantRoleType.js index c629177f0..47898232f 100644 --- a/migrations/110600_transferParticipantRoleType.js +++ b/migrations/110600_transferParticipantRoleType.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferParticipantRoleType').then(function(exists) { if (!exists) { return knex.schema.createTable('transferParticipantRoleType', (t) => { @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferParticipantRoleType') } diff --git a/migrations/110601_transferParticipantRoleType-indexes.js b/migrations/110601_transferParticipantRoleType-indexes.js index 3c0d55949..796d62acd 100644 --- a/migrations/110601_transferParticipantRoleType-indexes.js +++ b/migrations/110601_transferParticipantRoleType-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transferParticipantRoleType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transferParticipantRoleType', (t) => { t.dropUnique('name') }) diff --git a/migrations/110700_transferState.js b/migrations/110700_transferState.js index 0d696c2a1..86f3671b2 100644 --- a/migrations/110700_transferState.js +++ b/migrations/110700_transferState.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferState').then(function(exists) { if (!exists) { return knex.schema.createTable('transferState', (t) => { @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferState') } diff --git a/migrations/110800_settlementWindowState.js b/migrations/110800_settlementWindowState.js index 3f1f299ef..91d5cda3e 100644 --- a/migrations/110800_settlementWindowState.js +++ b/migrations/110800_settlementWindowState.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementWindowState').then(function (exists) { if (!exists) { return knex.schema.createTable('settlementWindowState', (t) => { @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementWindowState') } diff --git a/migrations/110900_settlementState.js b/migrations/110900_settlementState.js index 13686a5fa..7811a1cfd 100644 --- a/migrations/110900_settlementState.js +++ b/migrations/110900_settlementState.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementState').then(function(exists) { if (!exists) { return knex.schema.createTable('settlementState', (t) => { @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementState') } diff --git a/migrations/111000_amountType.js b/migrations/111000_amountType.js index a50145c2f..52b738199 100644 --- a/migrations/111000_amountType.js +++ b/migrations/111000_amountType.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('amountType').then((exists) => { if (!exists) { return knex.schema.createTable('amountType', (t) => { @@ -44,6 +44,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('amountType') } diff --git a/migrations/111001_amountType-indexes.js b/migrations/111001_amountType-indexes.js index 1c7751111..916fda98c 100644 --- a/migrations/111001_amountType-indexes.js +++ b/migrations/111001_amountType-indexes.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,13 +31,13 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('amountType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('amountType', (t) => { t.dropUnique('name') }) diff --git a/migrations/111100_balanceOfPayments.js b/migrations/111100_balanceOfPayments.js index 2e0025359..7f8c4caf3 100644 --- a/migrations/111100_balanceOfPayments.js +++ b/migrations/111100_balanceOfPayments.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('balanceOfPayments').then((exists) => { if (!exists) { return knex.schema.createTable('balanceOfPayments', (t) => { @@ -45,6 +45,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('balanceOfPayments') } diff --git a/migrations/111101_balanceOfPayments-indexes.js b/migrations/111101_balanceOfPayments-indexes.js index 79cd755a8..0dca4a266 100644 --- a/migrations/111101_balanceOfPayments-indexes.js +++ b/migrations/111101_balanceOfPayments-indexes.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,13 +31,13 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('balanceOfPayments', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('balanceOfPayments', (t) => { t.dropUnique('name') }) diff --git a/migrations/111200_partyIdentifierType.js b/migrations/111200_partyIdentifierType.js index 7c85f447f..dbb68e1f0 100644 --- a/migrations/111200_partyIdentifierType.js +++ b/migrations/111200_partyIdentifierType.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('partyIdentifierType').then((exists) => { if (!exists) { return knex.schema.createTable('partyIdentifierType', (t) => { @@ -43,6 +43,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('partyIdentifierType') } diff --git a/migrations/111201_partyIdentifierType-indexes.js b/migrations/111201_partyIdentifierType-indexes.js index cf39f3075..3f24519cc 100644 --- a/migrations/111201_partyIdentifierType-indexes.js +++ b/migrations/111201_partyIdentifierType-indexes.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,13 +31,13 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('partyIdentifierType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('partyIdentifierType', (t) => { t.dropUnique('name') }) diff --git a/migrations/111300_partyType.js b/migrations/111300_partyType.js index 43372d7d9..3eefc1c46 100644 --- a/migrations/111300_partyType.js +++ b/migrations/111300_partyType.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('partyType').then((exists) => { if (!exists) { return knex.schema.createTable('partyType', (t) => { @@ -43,6 +43,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('partyType') } diff --git a/migrations/111301_partyType-indexes.js b/migrations/111301_partyType-indexes.js index c6a0fd44c..3dd7e234b 100644 --- a/migrations/111301_partyType-indexes.js +++ b/migrations/111301_partyType-indexes.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,13 +31,13 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('partyType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('partyType', (t) => { t.dropUnique('name') }) diff --git a/migrations/111400_quoteDuplicateCheck.js b/migrations/111400_quoteDuplicateCheck.js index 71cd3fac1..4ebcc2d29 100644 --- a/migrations/111400_quoteDuplicateCheck.js +++ b/migrations/111400_quoteDuplicateCheck.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('quoteDuplicateCheck').then((exists) => { if (!exists) { return knex.schema.createTable('quoteDuplicateCheck', (t) => { @@ -43,6 +43,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('quoteDuplicateCheck') } diff --git a/migrations/111500_transactionInitiator.js b/migrations/111500_transactionInitiator.js index 403b6df1b..053a33357 100644 --- a/migrations/111500_transactionInitiator.js +++ b/migrations/111500_transactionInitiator.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('transactionInitiator').then((exists) => { if (!exists) { return knex.schema.createTable('transactionInitiator', (t) => { @@ -44,6 +44,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('transactionInitiator') } diff --git a/migrations/111501_transactionInitiator-indexes.js b/migrations/111501_transactionInitiator-indexes.js index b420a4065..511be7bb4 100644 --- a/migrations/111501_transactionInitiator-indexes.js +++ b/migrations/111501_transactionInitiator-indexes.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,13 +31,13 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transactionInitiator', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transactionInitiator', (t) => { t.dropUnique('name') }) diff --git a/migrations/111600_transactionInitiatorType.js b/migrations/111600_transactionInitiatorType.js index 6b5925f40..6ab689d6b 100644 --- a/migrations/111600_transactionInitiatorType.js +++ b/migrations/111600_transactionInitiatorType.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('transactionInitiatorType').then((exists) => { if (!exists) { return knex.schema.createTable('transactionInitiatorType', (t) => { @@ -44,6 +44,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('transactionInitiatorType') } diff --git a/migrations/111601_transactionInitiatorType-indexes.js b/migrations/111601_transactionInitiatorType-indexes.js index b4c086c15..d61e433ad 100644 --- a/migrations/111601_transactionInitiatorType-indexes.js +++ b/migrations/111601_transactionInitiatorType-indexes.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,14 +31,14 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transactionInitiatorType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transactionInitiatorType', (t) => { t.dropUnique('name') }) -} \ No newline at end of file +} diff --git a/migrations/112000_bulkTransferState.js b/migrations/112000_bulkTransferState.js index f67f7d00c..299d9fe91 100644 --- a/migrations/112000_bulkTransferState.js +++ b/migrations/112000_bulkTransferState.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransferState').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransferState', (t) => { @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkTransferState') } diff --git a/migrations/112100_bulkProcessingState.js b/migrations/112100_bulkProcessingState.js index a7d693a35..589b24aa0 100644 --- a/migrations/112100_bulkProcessingState.js +++ b/migrations/112100_bulkProcessingState.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkProcessingState').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkProcessingState', (t) => { @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkProcessingState') } diff --git a/migrations/112101_bulkProcessingState-indexes.js b/migrations/112101_bulkProcessingState-indexes.js index 536ba7269..c67d6ef86 100644 --- a/migrations/112101_bulkProcessingState-indexes.js +++ b/migrations/112101_bulkProcessingState-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('bulkProcessingState', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('bulkProcessingState', (t) => { t.dropUnique('name') }) diff --git a/migrations/200100_participant.js b/migrations/200100_participant.js index 6b9d27c18..3d7495646 100644 --- a/migrations/200100_participant.js +++ b/migrations/200100_participant.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participant').then(function(exists) { if (!exists) { return knex.schema.createTable('participant', (t) => { @@ -39,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participant') } diff --git a/migrations/200101_participant-indexes.js b/migrations/200101_participant-indexes.js index 8ff74d90c..c3c5a2e89 100644 --- a/migrations/200101_participant-indexes.js +++ b/migrations/200101_participant-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participant', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participant', (t) => { t.dropUnique('name') }) diff --git a/migrations/200200_participantContact.js b/migrations/200200_participantContact.js index b725bec9c..189267273 100644 --- a/migrations/200200_participantContact.js +++ b/migrations/200200_participantContact.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantContact').then(function(exists) { if (!exists) { return knex.schema.createTable('participantContact', (t) => { @@ -43,6 +43,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantContact') } diff --git a/migrations/200201_participantContact-indexes.js b/migrations/200201_participantContact-indexes.js index b031c1918..eb9e902b5 100644 --- a/migrations/200201_participantContact-indexes.js +++ b/migrations/200201_participantContact-indexes.js @@ -24,14 +24,14 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participantContact', (t) => { t.index('participantId') t.index('contactTypeId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participantContact', (t) => { t.dropIndex('participantId') t.dropIndex('contactTypeId') diff --git a/migrations/200300_participantEndpoint.js b/migrations/200300_participantEndpoint.js index d04b7386a..36c472808 100644 --- a/migrations/200300_participantEndpoint.js +++ b/migrations/200300_participantEndpoint.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantEndpoint').then(function(exists) { if (!exists) { return knex.schema.createTable('participantEndpoint', (t) => { @@ -42,6 +42,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantEndpoint') } diff --git a/migrations/200301_participantEndpoint-indexes.js b/migrations/200301_participantEndpoint-indexes.js index 8f516b7ee..822cdc0eb 100644 --- a/migrations/200301_participantEndpoint-indexes.js +++ b/migrations/200301_participantEndpoint-indexes.js @@ -24,14 +24,14 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participantEndpoint', (t) => { t.index('participantId') t.index('endpointTypeId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participantEndpoint', (t) => { t.dropIndex('participantId') t.dropIndex('endpointTypeId') diff --git a/migrations/200400_participantParty.js b/migrations/200400_participantParty.js index 9bbc1fa95..e10195df8 100644 --- a/migrations/200400_participantParty.js +++ b/migrations/200400_participantParty.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantParty').then(function(exists) { if (!exists) { return knex.schema.createTable('participantParty', (t) => { @@ -37,6 +37,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantParty') } diff --git a/migrations/200401_participantParty-indexes.js b/migrations/200401_participantParty-indexes.js index 96d652611..39b40966b 100644 --- a/migrations/200401_participantParty-indexes.js +++ b/migrations/200401_participantParty-indexes.js @@ -24,14 +24,14 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participantParty', (t) => { t.index('participantId') t.unique(['participantId', 'partyId']) }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participantParty', (t) => { t.dropIndex('participantId') t.dropUnique(['participantId', 'partyId']) diff --git a/migrations/200600_token.js b/migrations/200600_token.js index d18827637..17b550ecd 100644 --- a/migrations/200600_token.js +++ b/migrations/200600_token.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('token').then(function(exists) { if (!exists) { return knex.schema.createTable('token', (t) => { @@ -39,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('token') } diff --git a/migrations/200601_token-indexes.js b/migrations/200601_token-indexes.js index 0c85fd508..55c14f432 100644 --- a/migrations/200601_token-indexes.js +++ b/migrations/200601_token-indexes.js @@ -24,14 +24,14 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('token', (t) => { t.index('participantId') t.unique('value') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('token', (t) => { t.dropIndex('participantId') t.dropUnique('value') diff --git a/migrations/300100_transferDuplicateCheck.js b/migrations/300100_transferDuplicateCheck.js index b1a2ca43b..6da1da4ec 100644 --- a/migrations/300100_transferDuplicateCheck.js +++ b/migrations/300100_transferDuplicateCheck.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferDuplicateCheck').then(function(exists) { if (!exists) { return knex.schema.createTable('transferDuplicateCheck', (t) => { @@ -36,6 +36,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferDuplicateCheck') } diff --git a/migrations/300150_bulkTransferDuplicateCheck.js b/migrations/300150_bulkTransferDuplicateCheck.js index c3de3d6a3..372627d94 100644 --- a/migrations/300150_bulkTransferDuplicateCheck.js +++ b/migrations/300150_bulkTransferDuplicateCheck.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransferDuplicateCheck').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransferDuplicateCheck', (t) => { @@ -36,6 +36,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkTransferDuplicateCheck') } diff --git a/migrations/300200_transfer.js b/migrations/300200_transfer.js index 651f7c281..84c4b9144 100644 --- a/migrations/300200_transfer.js +++ b/migrations/300200_transfer.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transfer').then(function(exists) { if (!exists) { return knex.schema.createTable('transfer', (t) => { @@ -41,6 +41,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transfer') } diff --git a/migrations/300201_transfer-indexes.js b/migrations/300201_transfer-indexes.js index 68b39ceab..463a6a54a 100644 --- a/migrations/300201_transfer-indexes.js +++ b/migrations/300201_transfer-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transfer', (t) => { t.index('currencyId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transfer', (t) => { t.dropIndex('currencyId') }) diff --git a/migrations/300202_transfer-decimal184.js b/migrations/300202_transfer-decimal184.js index ee7c5ff22..db1577afd 100644 --- a/migrations/300202_transfer-decimal184.js +++ b/migrations/300202_transfer-decimal184.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transfer').then(function(exists) { if (exists) { return knex.schema.alterTable('transfer', (t) => { @@ -34,6 +34,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transfer') } diff --git a/migrations/300250_bulkTransfer.js b/migrations/300250_bulkTransfer.js index 3f96b5648..0ed82888f 100644 --- a/migrations/300250_bulkTransfer.js +++ b/migrations/300250_bulkTransfer.js @@ -25,7 +25,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransfer').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransfer', (t) => { @@ -43,6 +43,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkTransfer') } diff --git a/migrations/300251_bulkTransfer-indexes.js b/migrations/300251_bulkTransfer-indexes.js index 1f00de686..5d9e213ca 100644 --- a/migrations/300251_bulkTransfer-indexes.js +++ b/migrations/300251_bulkTransfer-indexes.js @@ -24,14 +24,14 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('bulkTransfer', (t) => { t.index('payerParticipantId') t.index('payeeParticipantId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('bulkTransfer', (t) => { t.dropIndex('payerParticipantId') t.dropIndex('payeeParticipantId') diff --git a/migrations/300275_bulkTransferAssociation.js b/migrations/300275_bulkTransferAssociation.js index 6479aeaf7..377e81b28 100644 --- a/migrations/300275_bulkTransferAssociation.js +++ b/migrations/300275_bulkTransferAssociation.js @@ -25,7 +25,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransferAssociation').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransferAssociation', (t) => { @@ -44,6 +44,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkTransferAssociation') } diff --git a/migrations/300276_bulkTransferAssociation-indexes.js b/migrations/300276_bulkTransferAssociation-indexes.js index 1aa861183..8bb5b5ba6 100644 --- a/migrations/300276_bulkTransferAssociation-indexes.js +++ b/migrations/300276_bulkTransferAssociation-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('bulkTransferAssociation', (t) => { t.unique(['transferId', 'bulkTransferId']) }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('bulkTransferAssociation', (t) => { t.dropUnique(['transferId', 'bulkTransferId']) }) diff --git a/migrations/300300_ilpPacket.js b/migrations/300300_ilpPacket.js index c15df5c5c..9a1951ad5 100644 --- a/migrations/300300_ilpPacket.js +++ b/migrations/300300_ilpPacket.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('ilpPacket').then(function(exists) { if (!exists) { return knex.schema.createTable('ilpPacket', (t) => { @@ -37,6 +37,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('ilpPacket') } diff --git a/migrations/300400_transferStateChange.js b/migrations/300400_transferStateChange.js index 7d60c98ff..352117a37 100644 --- a/migrations/300400_transferStateChange.js +++ b/migrations/300400_transferStateChange.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferStateChange').then(function(exists) { if (!exists) { return knex.schema.createTable('transferStateChange', (t) => { @@ -40,6 +40,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferStateChange') } diff --git a/migrations/300401_transferStateChange-indexes.js b/migrations/300401_transferStateChange-indexes.js index 801833e8e..9d1e616aa 100644 --- a/migrations/300401_transferStateChange-indexes.js +++ b/migrations/300401_transferStateChange-indexes.js @@ -24,14 +24,14 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transferStateChange', (t) => { t.index('transferId') t.index('transferStateId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transferStateChange', (t) => { t.dropIndex('transferId') t.dropIndex('transferStateId') diff --git a/migrations/300450_bulkTransferStateChange.js b/migrations/300450_bulkTransferStateChange.js index fde7ea1b0..553175522 100644 --- a/migrations/300450_bulkTransferStateChange.js +++ b/migrations/300450_bulkTransferStateChange.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransferStateChange').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransferStateChange', (t) => { @@ -40,6 +40,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkTransferStateChange') } diff --git a/migrations/300451_bulkTransferStateChange-indexes.js b/migrations/300451_bulkTransferStateChange-indexes.js index a5dcd08be..691851cf1 100644 --- a/migrations/300451_bulkTransferStateChange-indexes.js +++ b/migrations/300451_bulkTransferStateChange-indexes.js @@ -24,14 +24,14 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('bulkTransferStateChange', (t) => { t.index('bulkTransferId') t.index('bulkTransferStateId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('bulkTransferStateChange', (t) => { t.dropIndex('bulkTransferId') t.dropIndex('bulkTransferStateId') diff --git a/migrations/300500_segment.js b/migrations/300500_segment.js index b4f1d1162..deedd800f 100644 --- a/migrations/300500_segment.js +++ b/migrations/300500_segment.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('segment').then(function(exists) { if (!exists) { return knex.schema.createTable('segment', (t) => { @@ -39,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('segment') } diff --git a/migrations/300501_segment-indexes.js b/migrations/300501_segment-indexes.js index 5fc5e01a9..bc7ba4b10 100644 --- a/migrations/300501_segment-indexes.js +++ b/migrations/300501_segment-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('segment', (t) => { t.index(['segmentType', 'enumeration', 'tableName'], 'segment_keys_index') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('segment', (t) => { t.dropIndex(['segmentType', 'enumeration', 'tableName'], 'segment_keys_index') }) diff --git a/migrations/310100_participantCurrency.js b/migrations/310100_participantCurrency.js index 8d507c247..d47494645 100644 --- a/migrations/310100_participantCurrency.js +++ b/migrations/310100_participantCurrency.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantCurrency').then(function(exists) { if (!exists) { return knex.schema.createTable('participantCurrency', (t) => { @@ -43,6 +43,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantCurrency') } diff --git a/migrations/310101_participantCurrency-indexes.js b/migrations/310101_participantCurrency-indexes.js index 310000835..a964e6b07 100644 --- a/migrations/310101_participantCurrency-indexes.js +++ b/migrations/310101_participantCurrency-indexes.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participantCurrency', (t) => { t.index('participantId') t.index('currencyId') @@ -32,7 +32,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participantCurrency', (t) => { t.dropIndex('participantId') t.dropIndex('currencyId') diff --git a/migrations/310200_transferParticipant.js b/migrations/310200_transferParticipant.js index 3f266ddeb..b9145eebd 100644 --- a/migrations/310200_transferParticipant.js +++ b/migrations/310200_transferParticipant.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferParticipant').then(function(exists) { if (!exists) { return knex.schema.createTable('transferParticipant', (t) => { @@ -44,6 +44,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferParticipant') } diff --git a/migrations/310201_transferParticipant-indexes.js b/migrations/310201_transferParticipant-indexes.js index bfcc0e9f8..ea0c20303 100644 --- a/migrations/310201_transferParticipant-indexes.js +++ b/migrations/310201_transferParticipant-indexes.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transferParticipant', (t) => { t.index('transferId') t.index('participantCurrencyId') @@ -33,7 +33,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transferParticipant', (t) => { t.dropIndex('transferId') t.dropIndex('participantCurrencyId') diff --git a/migrations/310202_transferParticipant-decimal184.js b/migrations/310202_transferParticipant-decimal184.js index 76cf1eacc..14782d1f7 100644 --- a/migrations/310202_transferParticipant-decimal184.js +++ b/migrations/310202_transferParticipant-decimal184.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferParticipant').then(function(exists) { if (exists) { return knex.schema.alterTable('transferParticipant', (t) => { @@ -34,6 +34,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferParticipant') } diff --git a/migrations/310300_participantPosition.js b/migrations/310300_participantPosition.js index d43fa6b31..3f7c00535 100644 --- a/migrations/310300_participantPosition.js +++ b/migrations/310300_participantPosition.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantPosition').then(function(exists) { if (!exists) { return knex.schema.createTable('participantPosition', (t) => { @@ -39,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantPosition') } diff --git a/migrations/310301_participantPosition-indexes.js b/migrations/310301_participantPosition-indexes.js index 9ef87d344..eba935849 100644 --- a/migrations/310301_participantPosition-indexes.js +++ b/migrations/310301_participantPosition-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participantPosition', (t) => { t.index('participantCurrencyId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participantPosition', (t) => { t.dropIndex('participantCurrencyId') }) diff --git a/migrations/310302_participantPosition-decimal184.js b/migrations/310302_participantPosition-decimal184.js index 6a920939d..a9e19dd5c 100644 --- a/migrations/310302_participantPosition-decimal184.js +++ b/migrations/310302_participantPosition-decimal184.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantPosition').then(function(exists) { if (exists) { return knex.schema.alterTable('participantPosition', (t) => { @@ -35,6 +35,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantPosition') } diff --git a/migrations/310400_participantPositionChange.js b/migrations/310400_participantPositionChange.js index 53be0b11e..fefff189d 100644 --- a/migrations/310400_participantPositionChange.js +++ b/migrations/310400_participantPositionChange.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantPositionChange').then(function(exists) { if (!exists) { return knex.schema.createTable('participantPositionChange', (t) => { @@ -41,6 +41,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantPositionChange') } diff --git a/migrations/310401_participantPositionChange-indexes.js b/migrations/310401_participantPositionChange-indexes.js index 0980aa423..069c8824c 100644 --- a/migrations/310401_participantPositionChange-indexes.js +++ b/migrations/310401_participantPositionChange-indexes.js @@ -24,14 +24,14 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participantPositionChange', (t) => { t.index('participantPositionId') t.index('transferStateChangeId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participantPositionChange', (t) => { t.dropIndex('participantPositionId') t.dropIndex('transferStateChangeId') diff --git a/migrations/310402_participantPositionChange-decimal184.js b/migrations/310402_participantPositionChange-decimal184.js index 938a02b1d..eaf53244d 100644 --- a/migrations/310402_participantPositionChange-decimal184.js +++ b/migrations/310402_participantPositionChange-decimal184.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantPositionChange').then(function(exists) { if (exists) { return knex.schema.alterTable('participantPositionChange', (t) => { @@ -35,6 +35,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantPositionChange') } diff --git a/migrations/310500_participantLimit.js b/migrations/310500_participantLimit.js index 9a39f82b5..62d9a92aa 100644 --- a/migrations/310500_participantLimit.js +++ b/migrations/310500_participantLimit.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantLimit').then(function(exists) { if (!exists) { return knex.schema.createTable('participantLimit', (t) => { @@ -45,6 +45,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantLimit') } diff --git a/migrations/310501_participantLimit-indexes.js b/migrations/310501_participantLimit-indexes.js index 193d4a192..2f1d9ece9 100644 --- a/migrations/310501_participantLimit-indexes.js +++ b/migrations/310501_participantLimit-indexes.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participantLimit', (t) => { t.index('participantCurrencyId') t.index('participantLimitTypeId') @@ -32,7 +32,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participantLimit', (t) => { t.dropIndex('participantCurrencyId') t.dropIndex('participantLimitTypeId') diff --git a/migrations/310502_participantLimit-decimal184.js b/migrations/310502_participantLimit-decimal184.js index a24ec4de1..d8e32dd96 100644 --- a/migrations/310502_participantLimit-decimal184.js +++ b/migrations/310502_participantLimit-decimal184.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantLimit').then(function(exists) { if (exists) { return knex.schema.alterTable('participantLimit', (t) => { @@ -34,6 +34,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantLimit') } diff --git a/migrations/400100_settlementWindow.js b/migrations/400100_settlementWindow.js index 4c310ac28..7914ab578 100644 --- a/migrations/400100_settlementWindow.js +++ b/migrations/400100_settlementWindow.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementWindow').then(function(exists) { if (!exists) { return knex.schema.createTable('settlementWindow', (t) => { @@ -37,6 +37,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementWindow') } diff --git a/migrations/400200_settlement.js b/migrations/400200_settlement.js index 4e258c20c..ba4286a44 100644 --- a/migrations/400200_settlement.js +++ b/migrations/400200_settlement.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlement').then(function(exists) { if (!exists) { return knex.schema.createTable('settlement', (t) => { @@ -37,6 +37,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlement') } diff --git a/migrations/400300_settlementSettlementWindow.js b/migrations/400300_settlementSettlementWindow.js index bcd9056ff..abd948791 100644 --- a/migrations/400300_settlementSettlementWindow.js +++ b/migrations/400300_settlementSettlementWindow.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementSettlementWindow').then(function(exists) { if (!exists) { return knex.schema.createTable('settlementSettlementWindow', (t) => { @@ -39,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementSettlementWindow') } diff --git a/migrations/400301_settlementSettlementWindow-indexes.js b/migrations/400301_settlementSettlementWindow-indexes.js index 1806d31c5..3d57d5219 100644 --- a/migrations/400301_settlementSettlementWindow-indexes.js +++ b/migrations/400301_settlementSettlementWindow-indexes.js @@ -25,7 +25,7 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('settlementSettlementWindow', (t) => { t.index('settlementId') t.index('settlementWindowId') @@ -33,7 +33,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('settlementSettlementWindow', (t) => { t.dropIndex('settlementId') t.dropIndex('settlementWindowId') diff --git a/migrations/400400_settlementWindowStateChange.js b/migrations/400400_settlementWindowStateChange.js index 19213a84f..c87f38e21 100644 --- a/migrations/400400_settlementWindowStateChange.js +++ b/migrations/400400_settlementWindowStateChange.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementWindowStateChange').then(function(exists) { if (!exists) { return knex.schema.createTable('settlementWindowStateChange', (t) => { @@ -40,6 +40,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementWindowStateChange') } diff --git a/migrations/400401_settlmentWindowStateChange-indexes.js b/migrations/400401_settlmentWindowStateChange-indexes.js index 2309094de..af00c222b 100644 --- a/migrations/400401_settlmentWindowStateChange-indexes.js +++ b/migrations/400401_settlmentWindowStateChange-indexes.js @@ -24,14 +24,14 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('settlementWindowStateChange', (t) => { t.index('settlementWindowId') t.index('settlementWindowStateId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('settlementWindowStateChange', (t) => { t.dropIndex('settlementWindowId') t.dropIndex('settlementWindowStateId') diff --git a/migrations/400500_settlementTransferParticipant.js b/migrations/400500_settlementTransferParticipant.js index 28821b224..2cee29da8 100644 --- a/migrations/400500_settlementTransferParticipant.js +++ b/migrations/400500_settlementTransferParticipant.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementTransferParticipant').then(function(exists) { if (!exists) { return knex.schema.createTable('settlementTransferParticipant', (t) => { @@ -46,6 +46,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementTransferParticipant') } diff --git a/migrations/400501_settlementTransferParticipant-indexes.js b/migrations/400501_settlementTransferParticipant-indexes.js index 88ecdf367..948be36cc 100644 --- a/migrations/400501_settlementTransferParticipant-indexes.js +++ b/migrations/400501_settlementTransferParticipant-indexes.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('settlementTransferParticipant', (t) => { t.index('settlementId') t.index('settlementWindowId') @@ -34,7 +34,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('settlementTransferParticipant', (t) => { t.dropIndex('settlementId') t.dropIndex('settlementWindowId') diff --git a/migrations/400502_settlementTransferParticipant-decimal184.js b/migrations/400502_settlementTransferParticipant-decimal184.js index dae32342b..670021ccf 100644 --- a/migrations/400502_settlementTransferParticipant-decimal184.js +++ b/migrations/400502_settlementTransferParticipant-decimal184.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementTransferParticipant').then(function(exists) { if (exists) { return knex.schema.alterTable('settlementTransferParticipant', (t) => { @@ -34,6 +34,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementTransferParticipant') } diff --git a/migrations/400600_settlementParticipantCurrency.js b/migrations/400600_settlementParticipantCurrency.js index 20cc6bc97..e8d4e1a49 100644 --- a/migrations/400600_settlementParticipantCurrency.js +++ b/migrations/400600_settlementParticipantCurrency.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementParticipantCurrency').then(function(exists) { if (!exists) { return knex.schema.createTable('settlementParticipantCurrency', (t) => { @@ -42,6 +42,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementParticipantCurrency') } diff --git a/migrations/400601_settlementParticipantCurrency-indexes.js b/migrations/400601_settlementParticipantCurrency-indexes.js index b8cedf0d1..ddfdc78d9 100644 --- a/migrations/400601_settlementParticipantCurrency-indexes.js +++ b/migrations/400601_settlementParticipantCurrency-indexes.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('settlementParticipantCurrency', (t) => { t.index('settlementId') t.index('participantCurrencyId') @@ -32,7 +32,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('settlementParticipantCurrency', (t) => { t.dropIndex('settlementId') t.dropIndex('participantCurrencyId') diff --git a/migrations/400602_settlementParticipantCurrency-decimal184.js b/migrations/400602_settlementParticipantCurrency-decimal184.js index cf480e1af..45ae7bbb1 100644 --- a/migrations/400602_settlementParticipantCurrency-decimal184.js +++ b/migrations/400602_settlementParticipantCurrency-decimal184.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementParticipantCurrency').then(function(exists) { if (exists) { return knex.schema.alterTable('settlementParticipantCurrency', (t) => { @@ -34,6 +34,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementParticipantCurrency') } diff --git a/migrations/400700_settlementParticipantCurrencyStateChange.js b/migrations/400700_settlementParticipantCurrencyStateChange.js index 82d7efb6b..c48c4409e 100644 --- a/migrations/400700_settlementParticipantCurrencyStateChange.js +++ b/migrations/400700_settlementParticipantCurrencyStateChange.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementParticipantCurrencyStateChange').then(function(exists) { if (!exists) { return knex.schema.createTable('settlementParticipantCurrencyStateChange', (t) => { @@ -41,6 +41,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementParticipantCurrencyStateChange') } diff --git a/migrations/400701_settlementParticipantCurrencyStateChange-indexes.js b/migrations/400701_settlementParticipantCurrencyStateChange-indexes.js index b151c3024..764d7c95a 100644 --- a/migrations/400701_settlementParticipantCurrencyStateChange-indexes.js +++ b/migrations/400701_settlementParticipantCurrencyStateChange-indexes.js @@ -24,14 +24,14 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('settlementParticipantCurrencyStateChange', (t) => { t.index('settlementParticipantCurrencyId', 'spcsc_settlementparticipantcurrencyid_index') t.index('settlementStateId', 'spcsc_settlementstateid_index') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('settlementParticipantCurrencyStateChange', (t) => { t.dropIndex('settlementParticipantCurrencyId', 'spcsc_settlementparticipantcurrencyid_index') t.dropIndex('settlementStateId', 'spcsc_settlementstateid_index') diff --git a/migrations/400800_settlementStateChange.js b/migrations/400800_settlementStateChange.js index 03623d302..b1170ba74 100644 --- a/migrations/400800_settlementStateChange.js +++ b/migrations/400800_settlementStateChange.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementStateChange').then(function(exists) { if (!exists) { return knex.schema.createTable('settlementStateChange', (t) => { @@ -40,6 +40,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementStateChange') } diff --git a/migrations/400801_settlementStateChange-indexes.js b/migrations/400801_settlementStateChange-indexes.js index 643516c2c..f495234f2 100644 --- a/migrations/400801_settlementStateChange-indexes.js +++ b/migrations/400801_settlementStateChange-indexes.js @@ -24,14 +24,14 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('settlementStateChange', (t) => { t.index('settlementId') t.index('settlementStateId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('settlementStateChange', (t) => { t.dropIndex('settlementId') t.dropIndex('settlementStateId') diff --git a/migrations/410100_transferFulfilmentDuplicateCheck.js b/migrations/410100_transferFulfilmentDuplicateCheck.js index da7e20dcd..32c729dcf 100644 --- a/migrations/410100_transferFulfilmentDuplicateCheck.js +++ b/migrations/410100_transferFulfilmentDuplicateCheck.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferFulfilmentDuplicateCheck').then(function(exists) { if (!exists) { return knex.schema.createTable('transferFulfilmentDuplicateCheck', (t) => { @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferFulfilmentDuplicateCheck') } diff --git a/migrations/410101_transferFulfilmentDuplicateCheck-indexes.js b/migrations/410101_transferFulfilmentDuplicateCheck-indexes.js index 36fefa6ab..1f2302386 100644 --- a/migrations/410101_transferFulfilmentDuplicateCheck-indexes.js +++ b/migrations/410101_transferFulfilmentDuplicateCheck-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transferFulfilmentDuplicateCheck', (t) => { t.index('transferId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transferFulfilmentDuplicateCheck', (t) => { t.dropIndex('transferId') }) diff --git a/migrations/410102_transferFulfilmentDuplicateCheck-dropForeignTransferId.js b/migrations/410102_transferFulfilmentDuplicateCheck-dropForeignTransferId.js index bfc2847d7..b858a0fbe 100644 --- a/migrations/410102_transferFulfilmentDuplicateCheck-dropForeignTransferId.js +++ b/migrations/410102_transferFulfilmentDuplicateCheck-dropForeignTransferId.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferFulfilmentDuplicateCheck').then(function(exists) { if (exists) { return knex.schema.alterTable('transferFulfilmentDuplicateCheck', (t) => { @@ -34,6 +34,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferFulfilmentDuplicateCheck') } diff --git a/migrations/410103_transferFulfilmentDuplicateCheck-hashNullable.js b/migrations/410103_transferFulfilmentDuplicateCheck-hashNullable.js index fd3fcf012..474bba6f0 100644 --- a/migrations/410103_transferFulfilmentDuplicateCheck-hashNullable.js +++ b/migrations/410103_transferFulfilmentDuplicateCheck-hashNullable.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferFulfilmentDuplicateCheck').then(function(exists) { if (exists) { return knex.schema.alterTable('transferFulfilmentDuplicateCheck', (t) => { @@ -35,6 +35,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferFulfilmentDuplicateCheck') } diff --git a/migrations/410200_transferFulfilment.js b/migrations/410200_transferFulfilment.js index 97afb480a..70fda080c 100644 --- a/migrations/410200_transferFulfilment.js +++ b/migrations/410200_transferFulfilment.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferFulfilment').then(function(exists) { if (!exists) { return knex.schema.createTable('transferFulfilment', (t) => { @@ -44,6 +44,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferFulfilment') } diff --git a/migrations/410201_transferFulfilment-indexes.js b/migrations/410201_transferFulfilment-indexes.js index d0ab482bf..809f6cdf8 100644 --- a/migrations/410201_transferFulfilment-indexes.js +++ b/migrations/410201_transferFulfilment-indexes.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transferFulfilment', (t) => { t.index('transferId') t.index('settlementWindowId') @@ -32,7 +32,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transferFulfilment', (t) => { t.dropIndex('transferId') t.dropIndex('settlementWindowId') diff --git a/migrations/410202_transferFulfilment-ilpFulfilment.js b/migrations/410202_transferFulfilment-ilpFulfilment.js index 24c4effc3..5dd17cfc8 100644 --- a/migrations/410202_transferFulfilment-ilpFulfilment.js +++ b/migrations/410202_transferFulfilment-ilpFulfilment.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferFulfilment').then(function(exists) { if (exists) { return knex.schema.alterTable('transferFulfilment', (t) => { @@ -34,6 +34,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferFulfilment') } diff --git a/migrations/410203_transferFulfilment-foreignTransferFulfilmentId.js b/migrations/410203_transferFulfilment-foreignTransferFulfilmentId.js index 669afe6eb..99110369c 100644 --- a/migrations/410203_transferFulfilment-foreignTransferFulfilmentId.js +++ b/migrations/410203_transferFulfilment-foreignTransferFulfilmentId.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferFulfilment').then(function(exists) { if (exists) { return knex.schema.alterTable('transferFulfilment', (t) => { @@ -34,6 +34,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferFulfilment') } diff --git a/migrations/410240_bulkTransferFulfilmentDuplicateCheck.js b/migrations/410240_bulkTransferFulfilmentDuplicateCheck.js index b8e881626..b16fe9a7e 100644 --- a/migrations/410240_bulkTransferFulfilmentDuplicateCheck.js +++ b/migrations/410240_bulkTransferFulfilmentDuplicateCheck.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransferFulfilmentDuplicateCheck').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransferFulfilmentDuplicateCheck', (t) => { @@ -37,6 +37,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkTransferFulfilmentDuplicateCheck') } diff --git a/migrations/410250_bulkTransferFulfilment.js b/migrations/410250_bulkTransferFulfilment.js index b2ebd0a77..9f36adee5 100644 --- a/migrations/410250_bulkTransferFulfilment.js +++ b/migrations/410250_bulkTransferFulfilment.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransferFulfilment').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransferFulfilment', (t) => { @@ -37,6 +37,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkTransferFulfilment') } diff --git a/migrations/410300_transferExtension.js b/migrations/410300_transferExtension.js index 75ef4b7d4..96e1d7e2a 100644 --- a/migrations/410300_transferExtension.js +++ b/migrations/410300_transferExtension.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferExtension').then(function(exists) { if (!exists) { return knex.schema.createTable('transferExtension', (t) => { @@ -41,6 +41,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferExtension') } diff --git a/migrations/410301_transferExtension-indexes.js b/migrations/410301_transferExtension-indexes.js index 98b0b51f0..29db0cbef 100644 --- a/migrations/410301_transferExtension-indexes.js +++ b/migrations/410301_transferExtension-indexes.js @@ -24,14 +24,14 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transferExtension', (t) => { t.index('transferId') t.index('transferFulfilmentId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transferExtension', (t) => { t.dropIndex('transferId') t.dropIndex('transferFulfilmentId') diff --git a/migrations/410302_transferExtension-transferErrorId.js b/migrations/410302_transferExtension-transferErrorId.js index c436170d0..03feec2aa 100644 --- a/migrations/410302_transferExtension-transferErrorId.js +++ b/migrations/410302_transferExtension-transferErrorId.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferExtension').then(function(exists) { if (exists) { return knex.schema.alterTable('transferExtension', (t) => { @@ -34,6 +34,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferExtension') } diff --git a/migrations/410350_bulkTransferExtension.js b/migrations/410350_bulkTransferExtension.js index 911980570..378ac1226 100644 --- a/migrations/410350_bulkTransferExtension.js +++ b/migrations/410350_bulkTransferExtension.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransferExtension').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransferExtension', (t) => { @@ -40,6 +40,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferExtension') } diff --git a/migrations/410351_bulkTransferExtension-indexes.js b/migrations/410351_bulkTransferExtension-indexes.js index a8e8d1081..74c0e7cad 100644 --- a/migrations/410351_bulkTransferExtension-indexes.js +++ b/migrations/410351_bulkTransferExtension-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('bulkTransferExtension', (t) => { t.index('bulkTransferId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('bulkTransferExtension', (t) => { t.dropIndex('bulkTransferId') }) diff --git a/migrations/410400_transferTimeout.js b/migrations/410400_transferTimeout.js index 64ab125ec..0677a767e 100644 --- a/migrations/410400_transferTimeout.js +++ b/migrations/410400_transferTimeout.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferTimeout').then(function(exists) { if (!exists) { return knex.schema.createTable('transferTimeout', (t) => { @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferTimeout') } diff --git a/migrations/410401_transferTimeout-indexes.js b/migrations/410401_transferTimeout-indexes.js index c209ee95b..07333acbe 100644 --- a/migrations/410401_transferTimeout-indexes.js +++ b/migrations/410401_transferTimeout-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transferTimeout', (t) => { t.unique('transferId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transferTimeout', (t) => { t.dropUnique('transferId') }) diff --git a/migrations/410450_transferErrorDuplicateCheck.js b/migrations/410450_transferErrorDuplicateCheck.js index 02497d722..49f669471 100644 --- a/migrations/410450_transferErrorDuplicateCheck.js +++ b/migrations/410450_transferErrorDuplicateCheck.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferErrorDuplicateCheck').then(function(exists) { if (!exists) { return knex.schema.createTable('transferErrorDuplicateCheck', (t) => { @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferErrorDuplicateCheck') } diff --git a/migrations/410500_transferError.js b/migrations/410500_transferError.js index d149ddc67..5db1ea785 100644 --- a/migrations/410500_transferError.js +++ b/migrations/410500_transferError.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferError').then(function(exists) { if (!exists) { return knex.schema.createTable('transferError', (t) => { @@ -39,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferError') } diff --git a/migrations/410501_transferError-indexes.js b/migrations/410501_transferError-indexes.js index 660b5eaad..a20757211 100644 --- a/migrations/410501_transferError-indexes.js +++ b/migrations/410501_transferError-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transferError', (t) => { t.index('transferStateChangeId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transferError', (t) => { t.dropIndex('transferStateChangeId') }) diff --git a/migrations/410502_transferError-foreignTransferErrorDuplicateCheckId.js b/migrations/410502_transferError-foreignTransferErrorDuplicateCheckId.js index 2dde2353b..6c891eb4f 100644 --- a/migrations/410502_transferError-foreignTransferErrorDuplicateCheckId.js +++ b/migrations/410502_transferError-foreignTransferErrorDuplicateCheckId.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferError').then(function(exists) { if (exists) { return knex.schema.alterTable('transferError', (t) => { @@ -35,6 +35,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferError') } diff --git a/migrations/410550_bulkTransferError.js b/migrations/410550_bulkTransferError.js index 5a7eb3467..9ed7637b3 100644 --- a/migrations/410550_bulkTransferError.js +++ b/migrations/410550_bulkTransferError.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransferError').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransferError', (t) => { @@ -39,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkTransferError') } diff --git a/migrations/410551_bulkTransferError-indexes.js b/migrations/410551_bulkTransferError-indexes.js index 4a2885405..1ffc7da06 100644 --- a/migrations/410551_bulkTransferError-indexes.js +++ b/migrations/410551_bulkTransferError-indexes.js @@ -24,13 +24,13 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('bulkTransferError', (t) => { t.index('bulkTransferStateChangeId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('bulkTransferError', (t) => { t.dropIndex('bulkTransferStateChangeId') }) diff --git a/migrations/500100_transactionReference.js b/migrations/500100_transactionReference.js index 240799590..cfeab9e06 100644 --- a/migrations/500100_transactionReference.js +++ b/migrations/500100_transactionReference.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('transactionReference').then((exists) => { if (!exists) { return knex.schema.createTable('transactionReference', (t) => { @@ -44,6 +44,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('transactionReference') } diff --git a/migrations/500101_transactionReference-indexes.js b/migrations/500101_transactionReference-indexes.js index 646d8344a..eb8651cc0 100644 --- a/migrations/500101_transactionReference-indexes.js +++ b/migrations/500101_transactionReference-indexes.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,13 +31,13 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transactionReference', (t) => { t.index('quoteId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transactionReference', (t) => { t.dropIndex('quoteId') }) diff --git a/migrations/500200_transactionScenario.js b/migrations/500200_transactionScenario.js index 24d78ba51..616f50023 100644 --- a/migrations/500200_transactionScenario.js +++ b/migrations/500200_transactionScenario.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('transactionScenario').then((exists) => { if (!exists) { return knex.schema.createTable('transactionScenario', (t) => { @@ -44,6 +44,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('transactionScenario') } diff --git a/migrations/500201_transactionScenario-indexes.js b/migrations/500201_transactionScenario-indexes.js index 0edbf8e9b..8f1880f54 100644 --- a/migrations/500201_transactionScenario-indexes.js +++ b/migrations/500201_transactionScenario-indexes.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,14 +31,14 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transactionScenario', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transactionScenario', (t) => { t.dropUnique('name') }) -} \ No newline at end of file +} diff --git a/migrations/500300_transactionSubScenario.js b/migrations/500300_transactionSubScenario.js index 250341da4..166f2042d 100644 --- a/migrations/500300_transactionSubScenario.js +++ b/migrations/500300_transactionSubScenario.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('transactionSubScenario').then((exists) => { if (!exists) { return knex.schema.createTable('transactionSubScenario', (t) => { @@ -44,6 +44,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('transactionSubScenario') } diff --git a/migrations/500400_quote.js b/migrations/500400_quote.js index b82ed1f93..acb6012ee 100644 --- a/migrations/500400_quote.js +++ b/migrations/500400_quote.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('quote').then((exists) => { if (!exists) { return knex.schema.createTable('quote', (t) => { @@ -63,6 +63,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('quote') } diff --git a/migrations/500500_quoteParty.js b/migrations/500500_quoteParty.js index b0304bac3..a0315ca15 100644 --- a/migrations/500500_quoteParty.js +++ b/migrations/500500_quoteParty.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('quoteParty').then((exists) => { if (!exists) { return knex.schema.createTable('quoteParty', (t) => { @@ -63,6 +63,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('quoteParty') } diff --git a/migrations/500600_party.js b/migrations/500600_party.js index 074958861..65f250c78 100644 --- a/migrations/500600_party.js +++ b/migrations/500600_party.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('party').then((exists) => { if (!exists) { return knex.schema.createTable('party', (t) => { @@ -48,6 +48,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('party') } diff --git a/migrations/500700_quoteResponse.js b/migrations/500700_quoteResponse.js index 5e38b66a4..397e748c2 100644 --- a/migrations/500700_quoteResponse.js +++ b/migrations/500700_quoteResponse.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('quoteResponse').then((exists) => { if (!exists) { return knex.schema.createTable('quoteResponse', (t) => { @@ -59,6 +59,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('quoteResponse') } diff --git a/migrations/500800_quoteResponseIlpPacket.js b/migrations/500800_quoteResponseIlpPacket.js index f1e95db3e..280f55645 100644 --- a/migrations/500800_quoteResponseIlpPacket.js +++ b/migrations/500800_quoteResponseIlpPacket.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('quoteResponseIlpPacket').then((exists) => { if (!exists) { return knex.schema.createTable('quoteResponseIlpPacket', (t) => { @@ -43,6 +43,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('quoteResponseIlpPacket') } diff --git a/migrations/500900_geoCode.js b/migrations/500900_geoCode.js index f1e2beb4c..0be60adc4 100644 --- a/migrations/500900_geoCode.js +++ b/migrations/500900_geoCode.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('geoCode').then((exists) => { if (!exists) { return knex.schema.createTable('geoCode', (t) => { @@ -46,6 +46,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('geoCode') } diff --git a/migrations/501000_quoteExtension.js b/migrations/501000_quoteExtension.js index b89b904a3..1bc9f0e0c 100644 --- a/migrations/501000_quoteExtension.js +++ b/migrations/501000_quoteExtension.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('quoteExtension').then((exists) => { if (!exists) { return knex.schema.createTable('quoteExtension', (t) => { @@ -50,6 +50,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('quoteExtension') } diff --git a/migrations/501100_quoteResponseDuplicateCheck.js b/migrations/501100_quoteResponseDuplicateCheck.js index 4403fbb97..04270da0b 100644 --- a/migrations/501100_quoteResponseDuplicateCheck.js +++ b/migrations/501100_quoteResponseDuplicateCheck.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('quoteResponseDuplicateCheck').then((exists) => { if (!exists) { return knex.schema.createTable('quoteResponseDuplicateCheck', (t) => { @@ -46,6 +46,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('quoteResponseDuplicateCheck') } diff --git a/migrations/501200_quoteError.js b/migrations/501200_quoteError.js index 1378443cd..93a8ae716 100644 --- a/migrations/501200_quoteError.js +++ b/migrations/501200_quoteError.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('quoteError').then((exists) => { if (!exists) { return knex.schema.createTable('quoteError', (t) => { @@ -48,6 +48,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('quoteError') } diff --git a/migrations/501300_transferRules.js b/migrations/501300_transferRules.js index 36b69187c..a30dcf92f 100644 --- a/migrations/501300_transferRules.js +++ b/migrations/501300_transferRules.js @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('transferRules').then((exists) => { if (!exists) { return knex.schema.createTable('transferRules', (t) => { @@ -46,6 +46,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('transferRules') } diff --git a/migrations/800100_quotePartyView.js b/migrations/800100_quotePartyView.js index 92bbbbebe..38bfa9194 100644 --- a/migrations/800100_quotePartyView.js +++ b/migrations/800100_quotePartyView.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.raw(` CREATE OR REPLACE VIEW quotePartyView AS SELECT diff --git a/migrations/800200_quoteView.js b/migrations/800200_quoteView.js index 612a62187..a1e99d982 100644 --- a/migrations/800200_quoteView.js +++ b/migrations/800200_quoteView.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.raw(` CREATE OR REPLACE VIEW quoteView AS SELECT diff --git a/migrations/800300_quoteResponseView.js b/migrations/800300_quoteResponseView.js index cdfd1b348..0e92c8e83 100644 --- a/migrations/800300_quoteResponseView.js +++ b/migrations/800300_quoteResponseView.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -31,7 +31,7 @@ Contributors // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.raw(` CREATE OR REPLACE VIEW quoteResponseView AS SELECT diff --git a/migrations/900100_foreign-keys.js b/migrations/900100_foreign-keys.js index c9106db12..76fe6133d 100644 --- a/migrations/900100_foreign-keys.js +++ b/migrations/900100_foreign-keys.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { // foreign keys sorted alphabetically by table name return knex.schema .table('settlement', (t) => { @@ -38,7 +38,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema .table('settlement', (t) => { t.dropForeign('currentStateChangeId') diff --git a/migrations/900101_foreign-keys.js b/migrations/900101_foreign-keys.js index 111b674ea..cb139dd23 100644 --- a/migrations/900101_foreign-keys.js +++ b/migrations/900101_foreign-keys.js @@ -24,7 +24,7 @@ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { // foreign keys sorted alphabetically by table name return knex.schema .table('transferExtension', (t) => { @@ -32,7 +32,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema .table('transferExtension', (t) => { t.dropForeign('transferErrorId') diff --git a/migrations/910100_feature904DDL.js b/migrations/910100_feature904DDL.js index f65c1b50c..975ddec5a 100644 --- a/migrations/910100_feature904DDL.js +++ b/migrations/910100_feature904DDL.js @@ -151,10 +151,10 @@ const migrateDDL = async (knex) => { return 0 } -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await migrateDDL(knex) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferFulfilmentDuplicateCheck') } diff --git a/migrations/910101_feature904DataMigration.js b/migrations/910101_feature904DataMigration.js index 12d9c65e3..dcaacf4ac 100644 --- a/migrations/910101_feature904DataMigration.js +++ b/migrations/910101_feature904DataMigration.js @@ -33,8 +33,8 @@ const tableNameSuffix = Time.getYMDString(new Date()) * This migration script is provided with no warranties! It is given as a reference * to help implementers, as well as used by maintainers for QA and other enabling tasks. * Use at your own risk! - * - * Make sure you have fresh DB backup before initializing it and also set + * + * Make sure you have fresh DB backup before initializing it and also set * `tableNameSuffix` to match the suffix of the tables you want to migrate data from. * If you need to execute this script multiple times after failure or modifications, * please delete the corresponding record from central_ledger.migration table. @@ -103,12 +103,12 @@ const migrateData = async (knex) => { }) } -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { if (RUN_DATA_MIGRATIONS) { return await migrateData(knex) } } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferFulfilmentDuplicateCheck') } diff --git a/migrations/910102_feature949DataMigration.js b/migrations/910102_feature949DataMigration.js index 5b9e1e301..d778e2a2e 100644 --- a/migrations/910102_feature949DataMigration.js +++ b/migrations/910102_feature949DataMigration.js @@ -23,7 +23,6 @@ ******/ 'use strict' -const Time = require('@mojaloop/central-services-shared').Util.Time const Config = require('../src/lib/config') const RUN_DATA_MIGRATIONS = Config.DB_RUN_DATA_MIGRATIONS @@ -31,8 +30,8 @@ const RUN_DATA_MIGRATIONS = Config.DB_RUN_DATA_MIGRATIONS * This migration script is provided with no warranties! It is given as a reference * to help implementers, as well as used by maintainers for QA and other enabling tasks. * Use at your own risk! - * - * Make sure you have fresh DB backup before initializing it and also set + * + * Make sure you have fresh DB backup before initializing it and also set * `tableNameSuffix` to match the suffix of the tables you want to migrate data from. * If you need to execute this script multiple times after failure or modifications, * please delete the corresponding record from central_ledger.migration table. @@ -270,12 +269,12 @@ const migrateData = async (knex) => { }) } -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { if (RUN_DATA_MIGRATIONS) { return await migrateData(knex) } } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('currency') } diff --git a/migrations/910102_hotfix954.js b/migrations/910102_hotfix954.js index 957488534..1def80ee0 100644 --- a/migrations/910102_hotfix954.js +++ b/migrations/910102_hotfix954.js @@ -51,13 +51,13 @@ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return knex.schema.table('transferError', (t) => { // Dropping foreign keys for the transferError table to allow the error to be logged without any record existing in the transferErrorDuplicateCheck t.dropForeign('transferId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferError') } diff --git a/package-lock.json b/package-lock.json index 4709d17c3..5b832b506 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@mojaloop/central-ledger", - "version": "8.6.3", + "version": "8.7.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -14,44 +14,44 @@ } }, "@babel/generator": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.2.tgz", - "integrity": "sha512-WthSArvAjYLz4TcbKOi88me+KmDJdKSlfwwN8CnUYn9jBkzhq0ZEPuBfkAWIvjJ3AdEV1Cf/+eSQTnp3IDJKlQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", + "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", "dev": true, "requires": { - "@babel/types": "^7.7.2", + "@babel/types": "^7.7.4", "jsesc": "^2.5.1", "lodash": "^4.17.13", "source-map": "^0.5.0" } }, "@babel/helper-function-name": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.0.tgz", - "integrity": "sha512-tDsJgMUAP00Ugv8O2aGEua5I2apkaQO7lBGUq1ocwN3G23JE5Dcq0uh3GvFTChPa4b40AWiAsLvCZOA2rdnQ7Q==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", + "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.7.0", - "@babel/template": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/helper-get-function-arity": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@babel/helper-get-function-arity": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.0.tgz", - "integrity": "sha512-tLdojOTz4vWcEnHWHCuPN5P85JLZWbm5Fx5ZsMEMPhF3Uoe3O7awrbM2nQ04bDOUToH/2tH/ezKEOR8zEYzqyw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", + "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@babel/helper-split-export-declaration": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.0.tgz", - "integrity": "sha512-HgYSI8rH08neWlAH3CcdkFg9qX9YsZysZI5GD8LjhQib/mM0jGOZOVkoUiiV2Hu978fRtjtsGsW6w0pKHUWtqA==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz", + "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@babel/highlight": { @@ -66,34 +66,34 @@ } }, "@babel/parser": { - "version": "7.7.3", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.3.tgz", - "integrity": "sha512-bqv+iCo9i+uLVbI0ILzKkvMorqxouI+GbV13ivcARXn9NNEabi2IEz912IgNpT/60BNXac5dgcfjb94NjsF33A==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", + "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", "dev": true }, "@babel/template": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", - "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", + "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@babel/traverse": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.2.tgz", - "integrity": "sha512-TM01cXib2+rgIZrGJOLaHV/iZUAxf4A0dt5auY6KNZ+cm6aschuJGqKJM3ROTt3raPUdIDk9siAufIFEleRwtw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.4.tgz", + "integrity": "sha512-P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw==", "dev": true, "requires": { "@babel/code-frame": "^7.5.5", - "@babel/generator": "^7.7.2", - "@babel/helper-function-name": "^7.7.0", - "@babel/helper-split-export-declaration": "^7.7.0", - "@babel/parser": "^7.7.2", - "@babel/types": "^7.7.2", + "@babel/generator": "^7.7.4", + "@babel/helper-function-name": "^7.7.4", + "@babel/helper-split-export-declaration": "^7.7.4", + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4", "debug": "^4.1.0", "globals": "^11.1.0", "lodash": "^4.17.13" @@ -111,9 +111,9 @@ } }, "@babel/types": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.2.tgz", - "integrity": "sha512-YTf6PXoh3+eZgRCBzzP25Bugd2ngmpQVrk7kXX0i5N9BO7TFBtIgZYs7WtxtOGs8e6A4ZI7ECkbBCEHeXocvOA==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -140,9 +140,9 @@ } }, "@hapi/address": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.2.tgz", - "integrity": "sha512-O4QDrx+JoGKZc6aN64L04vqa7e41tIiLU+OvKdcYaEMP97UttL0f9GIi9/0A4WAMx0uBd6SidDIhktZhgOcN8Q==" + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.4.tgz", + "integrity": "sha512-QD1PhQk+s31P1ixsX0H0Suoupp3VMXzIVMSwobR3F3MSUO2YCV0B7xqLcUw/Bh8yuvd3LhpyqLQWTNcRmp6IdQ==" }, "@hapi/ammo": { "version": "3.1.1", @@ -551,9 +551,9 @@ }, "dependencies": { "bluebird": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.1.tgz", - "integrity": "sha512-DdmyoGCleJnkbp3nkbxTLJ18rjDsE4yCggEwKNXkeV123sPNfOCYeDoeuOY+F2FrSjO1YXcTU+dsy96KMy+gcg==" + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" }, "commander": { "version": "3.0.2", @@ -620,21 +620,6 @@ "requires": { "@mojaloop/sdk-standard-components": "8.1.4", "lodash": "4.17.15" - }, - "dependencies": { - "@mojaloop/sdk-standard-components": { - "version": "8.1.4", - "resolved": "https://registry.npmjs.org/@mojaloop/sdk-standard-components/-/sdk-standard-components-8.1.4.tgz", - "integrity": "sha512-OyUYb3DenwZyUQdvdfpOqUHXlOaHCqedh12Y7RIXPUwanadL/AU+b5RWKm6HY1PrELhvTaBoyzOLRaCrAegx5Q==", - "requires": { - "base64url": "^3.0.1", - "ilp-packet": "2.2.0", - "jsonwebtoken": "^8.5.1", - "jws": "^3.2.2", - "request": "^2.34", - "request-promise-native": "^1.0.7" - } - } } }, "@mojaloop/central-services-logger": { @@ -665,30 +650,6 @@ "lodash": "4.17.15", "mustache": "3.1.0", "raw-body": "2.4.1" - }, - "dependencies": { - "@mojaloop/event-sdk": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@mojaloop/event-sdk/-/event-sdk-8.3.0.tgz", - "integrity": "sha512-Shc2NMZPHu8BKU9qPNxJVUhocr+l500DYZ2v+gxDjUL9PgmBCcFKsmGyf10PtV5xK9bLWxviWrhvXdZZyOQ6oQ==", - "requires": { - "@grpc/proto-loader": "0.5.2", - "@mojaloop/central-services-logger": "8.1.2", - "@types/protobufjs": "6.0.0", - "brototype": "0.0.6", - "error-callsites": "2.0.2", - "grpc": "1.24.0", - "lodash": "4.17.15", - "moment": "2.24.0", - "parse-strings-in-object": "1.2.0", - "protobufjs": "6.8.8", - "rc": "1.2.8", - "serialize-error": "4.1.0", - "sinon": "7.5.0", - "traceparent": "1.0.0", - "uuid4": "1.1.4" - } - } } }, "@mojaloop/central-services-stream": { @@ -721,13 +682,48 @@ "requires": { "winston": "3.2.1" } + }, + "@mojaloop/sdk-standard-components": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@mojaloop/sdk-standard-components/-/sdk-standard-components-7.4.0.tgz", + "integrity": "sha512-5bpw0oFuSon9Zd7qNOhWoLozHLBPGqcu0vFhxMcLecSA5UPjyq5JJf3tAcaAtnJspkTMDW/GieI0uCr9pCEJzA==", + "requires": { + "base64url": "^3.0.1", + "ilp-packet": "2.2.0", + "jsonwebtoken": "^8.5.1", + "jws": "^3.2.2", + "request": "^2.34", + "request-promise-native": "^1.0.7" + } } } }, + "@mojaloop/event-sdk": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/@mojaloop/event-sdk/-/event-sdk-8.3.0.tgz", + "integrity": "sha512-Shc2NMZPHu8BKU9qPNxJVUhocr+l500DYZ2v+gxDjUL9PgmBCcFKsmGyf10PtV5xK9bLWxviWrhvXdZZyOQ6oQ==", + "requires": { + "@grpc/proto-loader": "0.5.2", + "@mojaloop/central-services-logger": "8.1.2", + "@types/protobufjs": "6.0.0", + "brototype": "0.0.6", + "error-callsites": "2.0.2", + "grpc": "1.24.0", + "lodash": "4.17.15", + "moment": "2.24.0", + "parse-strings-in-object": "1.2.0", + "protobufjs": "6.8.8", + "rc": "1.2.8", + "serialize-error": "4.1.0", + "sinon": "7.5.0", + "traceparent": "1.0.0", + "uuid4": "1.1.4" + } + }, "@mojaloop/sdk-standard-components": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/@mojaloop/sdk-standard-components/-/sdk-standard-components-7.4.0.tgz", - "integrity": "sha512-5bpw0oFuSon9Zd7qNOhWoLozHLBPGqcu0vFhxMcLecSA5UPjyq5JJf3tAcaAtnJspkTMDW/GieI0uCr9pCEJzA==", + "version": "8.1.4", + "resolved": "https://registry.npmjs.org/@mojaloop/sdk-standard-components/-/sdk-standard-components-8.1.4.tgz", + "integrity": "sha512-OyUYb3DenwZyUQdvdfpOqUHXlOaHCqedh12Y7RIXPUwanadL/AU+b5RWKm6HY1PrELhvTaBoyzOLRaCrAegx5Q==", "requires": { "base64url": "^3.0.1", "ilp-packet": "2.2.0", @@ -784,14 +780,14 @@ } }, "@mojaloop/central-services-shared": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@mojaloop/central-services-shared/-/central-services-shared-8.6.2.tgz", - "integrity": "sha512-zgzqUMHHU/CwB3dIqAvb1rHuVz7auzQdPCq+8/JOj3wqzzoQ4CH0Om4oxkRQiYt5yP1eh9TdEwKBp7dSustGsw==", + "version": "8.6.3", + "resolved": "https://registry.npmjs.org/@mojaloop/central-services-shared/-/central-services-shared-8.6.3.tgz", + "integrity": "sha512-qBRmtJN1FNBYEM8ORd49wr5999s39+U8ahbFMsVmGE7MJVF3HzvoYMndw2hF4rNXaSGmMGfUOikTht0D6TW/tQ==", "requires": { "@hapi/catbox": "10.2.3", "@hapi/catbox-memory": "4.1.1", "@mojaloop/central-services-error-handling": "8.6.2", - "@mojaloop/central-services-logger": "8.5.2", + "@mojaloop/central-services-logger": "8.6.0", "@mojaloop/central-services-stream": "8.4.0", "@mojaloop/event-sdk": "8.3.0", "axios": "0.19.0", @@ -805,16 +801,6 @@ "raw-body": "2.4.1" }, "dependencies": { - "@mojaloop/central-services-logger": { - "version": "8.5.2", - "resolved": "https://registry.npmjs.org/@mojaloop/central-services-logger/-/central-services-logger-8.5.2.tgz", - "integrity": "sha512-9nnpk82Q3UKeY5Tq4xuTuZAwGNNf6PR5NArJiSwx2LA4Kp43Det+6/E01nhqEcA4e5GkdAnraxwk8jOFBQoTkQ==", - "requires": { - "parse-strings-in-object": "1.2.0", - "rc": "1.2.8", - "winston": "3.2.1" - } - }, "@mojaloop/event-sdk": { "version": "8.3.0", "resolved": "https://registry.npmjs.org/@mojaloop/event-sdk/-/event-sdk-8.3.0.tgz", @@ -1556,9 +1542,9 @@ "integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q==" }, "@types/node": { - "version": "10.17.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.6.tgz", - "integrity": "sha512-0a2X6cgN3RdPBL2MIlR6Lt0KlM7fOFsutuXcdglcOq6WvLnYXgPQSh0Mx6tO1KCAE8MxbHSOSTWDoUxRq+l3DA==" + "version": "10.17.8", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.8.tgz", + "integrity": "sha512-FeTtEwXbQa187ABpeEQoO7pq3dHgE85FmAUExx2sKO6U1/MYrLTYv+BIMcgVbQ66WjI4w+Ni+5HJtY+gHgWnPg==" }, "@types/protobufjs": { "version": "6.0.0", @@ -1579,9 +1565,9 @@ } }, "abab": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.2.tgz", - "integrity": "sha512-2scffjvioEmNz0OyDSLGWDfKCVwaKc6l9Pm9kOIREU13ClXZvHpg/nRL5xyjSSSLhOnXqft2HpsAzNEEA8cFFg==" + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.3.tgz", + "integrity": "sha512-tsFzPpcttalNjFBCFMqsKYQcWxxen1pgJR56by//QwvJc4/OUS3kPOOttx2tSIfjsylB0pYu7f5D3K1RCxUnUg==" }, "abbrev": { "version": "1.1.1", @@ -1913,9 +1899,9 @@ "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" }, "aws4": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", - "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.0.tgz", + "integrity": "sha512-Uvq6hVe90D0B2WEnUqtdgY1bATGz3mw33nH9Y+dmA+w5DHvUmBgkr5rM/KCHpCsiFNRUfokW/szpPPgMK2hm4A==" }, "axios": { "version": "0.19.0", @@ -2221,9 +2207,9 @@ }, "dependencies": { "bluebird": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.1.tgz", - "integrity": "sha512-DdmyoGCleJnkbp3nkbxTLJ18rjDsE4yCggEwKNXkeV123sPNfOCYeDoeuOY+F2FrSjO1YXcTU+dsy96KMy+gcg==", + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", "dev": true }, "lru-cache": { @@ -2728,9 +2714,9 @@ "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=" }, "core-js": { - "version": "2.6.10", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.10.tgz", - "integrity": "sha512-I39t74+4t+zau64EN1fE5v2W31Adtc/REhzWN+gWRRXg6WH5qAsZm62DHpQ1+Yhe4047T55jvzz7MUqF/dBBlA==" + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.11.tgz", + "integrity": "sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg==" }, "core-util-is": { "version": "1.0.2", @@ -2922,9 +2908,9 @@ } }, "defer-to-connect": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.0.tgz", - "integrity": "sha512-WE2sZoctWm/v4smfCAdjYbrfS55JiMRdlY9ZubFhsYbteCK9+BvAx4YV7nPjYM6ZnX5BcoVKwfmyx9sIFTgQMQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.1.tgz", + "integrity": "sha512-J7thop4u3mRTkYRQ+Vpfwy2G5Ehoy82I14+14W4YMDLKdWloI9gSzRbV30s/NckQGVJtPkWNcW4oMAUigTdqiQ==", "dev": true }, "define-properties": { @@ -3197,17 +3183,17 @@ } }, "es-abstract": { - "version": "1.16.0", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.16.0.tgz", - "integrity": "sha512-xdQnfykZ9JMEiasTAJZJdMWCQ1Vm00NBw79/AWi7ELfZuuPCSOMDZbT9mkOfSctVtfhb+sAAzrm+j//GjjLHLg==", + "version": "1.16.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.16.3.tgz", + "integrity": "sha512-WtY7Fx5LiOnSYgF5eg/1T+GONaGmpvpPdCpSnYij+U2gDTL0UPfWrhDw7b2IYb+9NQJsYpCA0wOQvZfsd6YwRw==", "requires": { - "es-to-primitive": "^1.2.0", + "es-to-primitive": "^1.2.1", "function-bind": "^1.1.1", "has": "^1.0.3", - "has-symbols": "^1.0.0", + "has-symbols": "^1.0.1", "is-callable": "^1.1.4", "is-regex": "^1.0.4", - "object-inspect": "^1.6.0", + "object-inspect": "^1.7.0", "object-keys": "^1.1.1", "string.prototype.trimleft": "^2.1.0", "string.prototype.trimright": "^2.1.0" @@ -3409,12 +3395,12 @@ } }, "eslint-module-utils": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.4.1.tgz", - "integrity": "sha512-H6DOj+ejw7Tesdgbfs4jeS4YMFrT8uI8xwd1gtQqXssaR0EQ26L+2O/w6wkYFy2MymON0fTwHmXBvvfLNZVZEw==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.5.0.tgz", + "integrity": "sha512-kCo8pZaNz2dsAW7nCUjuVoI11EBXXpIzfNxmaoLhXoRDOnqXLC4iSGVRdZPhOitfbdEfMEfKOiENaK6wDPZEGw==", "dev": true, "requires": { - "debug": "^2.6.8", + "debug": "^2.6.9", "pkg-dir": "^2.0.0" }, "dependencies": { @@ -5060,9 +5046,9 @@ } }, "hapi-swagger": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/hapi-swagger/-/hapi-swagger-11.0.2.tgz", - "integrity": "sha512-NJd43dvdpCgdBztc9khIXreucmuEeGcJkD5ZarKk4Dgq56WbqDA0foauJ6jKe9RXLnoT0OJQJzbB3Kb3z43h7g==", + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/hapi-swagger/-/hapi-swagger-11.1.0.tgz", + "integrity": "sha512-ZffpCe6ayUbPz/7K+gRR4fPWHYUCBqzfKMzcVKHkqie681X8G/uVJLB1Kq/aoHiH5ELh5PFXfbJ8RjDPfc7Vkw==", "requires": { "@hapi/boom": "^8.0.1", "@hapi/hoek": "^8.2.4", @@ -5121,9 +5107,9 @@ "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "has-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", - "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", + "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==" }, "has-value": { "version": "1.0.0", @@ -5226,9 +5212,9 @@ } }, "http-status": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/http-status/-/http-status-1.4.1.tgz", - "integrity": "sha512-nEg0G+mDyN+IkMkE3m+Sl6a0AeLAfuDBLraHeSSz8xB2V1O4BnHCW+waX2P2jDnp5yNEuK6NcvBByfWG2o/Unw==" + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/http-status/-/http-status-1.4.2.tgz", + "integrity": "sha512-mBnIohUwRw9NyXMEMMv8/GANnzEYUj0Y8d3uL01zDWFkxUjYyZ6rgCaAI2zZ1Wb34Oqtbx/nFZolPRDc8Xlm5A==" }, "https-proxy-agent": { "version": "2.2.4", @@ -5308,9 +5294,9 @@ "integrity": "sha1-wkOZUUVbs5kT2vKBN28VMOEErfM=" }, "import-fresh": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.1.0.tgz", - "integrity": "sha512-PpuksHKGt8rXfWEr9m9EHIpgyyaltBy8+eF6GJM0QCAxMgxCfucMF3mjecK2QsJr0amJW7gTqh5/wht0z2UhEQ==", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", + "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", "dev": true, "requires": { "parent-module": "^1.0.0", @@ -5707,11 +5693,11 @@ "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" }, "is-symbol": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", - "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", + "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", "requires": { - "has-symbols": "^1.0.0" + "has-symbols": "^1.0.1" } }, "is-typedarray": { @@ -5947,9 +5933,9 @@ }, "dependencies": { "bluebird": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.1.tgz", - "integrity": "sha512-DdmyoGCleJnkbp3nkbxTLJ18rjDsE4yCggEwKNXkeV123sPNfOCYeDoeuOY+F2FrSjO1YXcTU+dsy96KMy+gcg==", + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", "dev": true }, "escape-string-regexp": { @@ -6180,9 +6166,9 @@ "dev": true }, "knex": { - "version": "0.20.3", - "resolved": "https://registry.npmjs.org/knex/-/knex-0.20.3.tgz", - "integrity": "sha512-zzYO34pSCCYVqRTbCp8xL+Z7fvHQl5anif3Oacu6JaHFDubB7mFGWRRJBNSO3N8Ql4g4CxUgBctaPiliwoOsNA==", + "version": "0.20.4", + "resolved": "https://registry.npmjs.org/knex/-/knex-0.20.4.tgz", + "integrity": "sha512-gNpYj9BtacWnQwkyPaHOlzHRLJ7N6Abz8AKYb4OqoDA/iCY50VAUSpigjkS7Z4sr7uW64sxW2cVoXudaLN1ZQw==", "requires": { "bluebird": "^3.7.1", "colorette": "1.1.0", @@ -6202,9 +6188,9 @@ }, "dependencies": { "bluebird": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.1.tgz", - "integrity": "sha512-DdmyoGCleJnkbp3nkbxTLJ18rjDsE4yCggEwKNXkeV123sPNfOCYeDoeuOY+F2FrSjO1YXcTU+dsy96KMy+gcg==" + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" }, "debug": { "version": "4.1.1", @@ -6474,9 +6460,9 @@ } }, "make-fetch-happen": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-5.0.1.tgz", - "integrity": "sha512-b4dfaMvUDR67zxUq1+GN7Ke9rH5WvGRmoHuMH7l+gmUCR2tCXFP6mpeJ9Dp+jB6z8mShRopSf1vLRBhRs8Cu5w==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-5.0.2.tgz", + "integrity": "sha512-07JHC0r1ykIoruKO8ifMXu+xEU8qOXDFETylktdug6vJDACnP+HKevOu3PXyNPzFyTSlz8vrBYlBO1JZRe8Cag==", "dev": true, "requires": { "agentkeepalive": "^3.4.1", @@ -6630,18 +6616,11 @@ "integrity": "sha512-UbfJCR4UAVRNgMpfImz05smAXK7+c+ZntjaA26ANtkXLlOe947Aag5zdIcKQULAiF9Cq4WxBi9jUs5zkA84bYQ==" }, "mime-types": { - "version": "2.1.24", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", - "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", + "version": "2.1.25", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.25.tgz", + "integrity": "sha512-5KhStqB5xpTAeGqKBAMgwaYMnQik7teQN4IAzC7npDv6kzeU6prfkR67bc87J1kWMPGkoaZSq1npmexMgkmEVg==", "requires": { - "mime-db": "1.40.0" - }, - "dependencies": { - "mime-db": { - "version": "1.40.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", - "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==" - } + "mime-db": "1.42.0" } }, "mimic-fn": { @@ -7076,10 +7055,13 @@ } }, "npm-bundled": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.6.tgz", - "integrity": "sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g==", - "dev": true + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.1.1.tgz", + "integrity": "sha512-gqkfgGePhTpAEgUsGEgcq1rqPXA+tv/aVBlgEzfXwA1yiUJF7xtEt3CtVwOjNYQOVknDk0F20w58Fnm3EtG0fA==", + "dev": true, + "requires": { + "npm-normalize-package-bin": "^1.0.1" + } }, "npm-check-updates": { "version": "3.2.2", @@ -7340,6 +7322,12 @@ } } }, + "npm-normalize-package-bin": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz", + "integrity": "sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA==", + "dev": true + }, "npm-package-arg": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-6.1.1.tgz", @@ -7353,9 +7341,9 @@ } }, "npm-packlist": { - "version": "1.4.6", - "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.6.tgz", - "integrity": "sha512-u65uQdb+qwtGvEJh/DgQgW1Xg7sqeNbmxYyrvlNznaVTjV3E5P6F/EFjM+BVHXl7JJlsdG8A64M0XI8FI/IOlg==", + "version": "1.4.7", + "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.7.tgz", + "integrity": "sha512-vAj7dIkp5NhieaGZxBJB8fF4R0078rqsmhJcAfXZ6O7JJhjhPK96n5Ry1oZcfLXgfun0GWTZPOxaEyqv8GBykQ==", "dev": true, "requires": { "ignore-walk": "^3.0.1", @@ -7902,9 +7890,9 @@ } }, "pacote": { - "version": "9.5.9", - "resolved": "https://registry.npmjs.org/pacote/-/pacote-9.5.9.tgz", - "integrity": "sha512-S1nYW9ly+3btn3VmwRAk2LG3TEh8mkrFdY+psbnHSk8oPODbZ28uG0Z0d3yI0EpqcpLR6BukoVRf3H4IbGCkPQ==", + "version": "9.5.11", + "resolved": "https://registry.npmjs.org/pacote/-/pacote-9.5.11.tgz", + "integrity": "sha512-DMDPvFKCjCg6zMS4IfzZyvT57O/bX8XGG00eEoy4K/S4Wj+qiN8KbnmKpsTvfS6OL9r5TAicxMKWbj1yV2Yh4g==", "dev": true, "requires": { "bluebird": "^3.5.3", @@ -7921,6 +7909,7 @@ "mississippi": "^3.0.0", "mkdirp": "^0.5.1", "normalize-package-data": "^2.4.0", + "npm-normalize-package-bin": "^1.0.0", "npm-package-arg": "^6.1.0", "npm-packlist": "^1.1.12", "npm-pick-manifest": "^3.0.0", @@ -7939,9 +7928,9 @@ }, "dependencies": { "bluebird": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.1.tgz", - "integrity": "sha512-DdmyoGCleJnkbp3nkbxTLJ18rjDsE4yCggEwKNXkeV123sPNfOCYeDoeuOY+F2FrSjO1YXcTU+dsy96KMy+gcg==", + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", "dev": true }, "get-stream": { @@ -8436,9 +8425,9 @@ "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=" }, "psl": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.4.0.tgz", - "integrity": "sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==" + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.6.0.tgz", + "integrity": "sha512-SYKKmVel98NCOYXpkwUqZqh0ahZeeKfmisiLIcEZdsb+WbLv02g/dI5BUmZnIyOe7RzZtLax81nnb2HbvC2tzA==" }, "pstree.remy": { "version": "1.1.7", @@ -8542,9 +8531,9 @@ } }, "react-is": { - "version": "16.11.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.11.0.tgz", - "integrity": "sha512-gbBVYR2p8mnriqAwWx9LbuUrShnAuSCNnuPGyc7GJrMVQtPDAh8iLpv7FRuMPFb56KkaVZIYSz1PrjI9q0QPCw==", + "version": "16.12.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.12.0.tgz", + "integrity": "sha512-rPCkf/mWBtKc97aLL9/txD8DZdemK0vkA3JMLShjlJB3Pj3s+lpf1KaBzMfQrAmhMQB0n1cU/SUGgKKBCe837Q==", "dev": true }, "read": { @@ -8815,9 +8804,9 @@ } }, "resolve": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", - "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.13.1.tgz", + "integrity": "sha512-CxqObCX8K8YtAhOBRg+lrcdn+LK+WYOS8tSjqSFbjtrI5PnS63QPhZl4+yKfrU9tdsbMu9Anr/amegT87M9Z6w==", "requires": { "path-parse": "^1.0.6" } @@ -10118,9 +10107,9 @@ "dev": true }, "uglify-js": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.7.0.tgz", - "integrity": "sha512-PC/ee458NEMITe1OufAjal65i6lB58R1HWMRcxwvdz1UopW0DYqlRL3xdu3IcTvTXsB02CRHykidkTRL+A3hQA==", + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.7.2.tgz", + "integrity": "sha512-uhRwZcANNWVLrxLfNFEdltoPNhECUR3lc+UdJoG9CBpMcSnKyWA94tc3eAujB1GcMY5Uwq8ZMp4qWpxWYDQmaA==", "optional": true, "requires": { "commander": "~2.20.3", diff --git a/package.json b/package.json index 11c316ff9..c99a2657a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mojaloop/central-ledger", - "version": "8.6.3", + "version": "8.7.0", "description": "Central ledger hosted by a scheme to record and settle transfers", "license": "Apache-2.0", "author": "ModusBox", @@ -83,7 +83,7 @@ "@mojaloop/central-services-health": "8.3.0", "@mojaloop/central-services-logger": "8.6.0", "@mojaloop/central-services-metrics": "8.3.0", - "@mojaloop/central-services-shared": "8.6.2", + "@mojaloop/central-services-shared": "8.6.3", "@mojaloop/central-services-stream": "8.4.0", "@mojaloop/event-sdk": "8.6.1", "@mojaloop/forensic-logging-client": "8.3.0", @@ -102,8 +102,8 @@ "good-winston": "4.0.0", "hapi-auth-basic": "5.0.0", "hapi-auth-bearer-token": "6.2.1", - "hapi-swagger": "11.0.2", - "knex": "0.20.3", + "hapi-swagger": "11.1.0", + "knex": "0.20.4", "lodash": "4.17.15", "moment": "2.24.0", "mustache": "3.1.0", diff --git a/src/domain/bulkTransfer/index.js b/src/domain/bulkTransfer/index.js index 1e7d057de..45ed522e1 100644 --- a/src/domain/bulkTransfer/index.js +++ b/src/domain/bulkTransfer/index.js @@ -48,7 +48,7 @@ const getBulkTransferById = async (id) => { // TODO: refactor this to move away from Promises and use async-await individualTransfers = await Promise.all(individualTransfers.map(async (transfer) => { // eslint-disable-next-line no-async-promise-executor - return new Promise(async (resolve, reject) => { + return new Promise(async (resolve) => { const result = { transferId: transfer.transferId } diff --git a/test/integration/handlers/handlers.test.js b/test/integration/handlers/handlers.test.js index 0ffe2a1e6..f85b4ecaa 100644 --- a/test/integration/handlers/handlers.test.js +++ b/test/integration/handlers/handlers.test.js @@ -285,7 +285,7 @@ Test('Handlers test', async handlersTest => { } try { - await retry(async bail => { // use bail(new Error('to break before max retries')) + await retry(async () => { // use bail(new Error('to break before max retries')) const transfer = await TransferService.getById(td.messageProtocolPrepare.content.payload.transferId) || {} if (transfer.transferState !== TransferState.RESERVED) { if (debug) console.log(`retrying in ${retryDelay / 1000}s..`) @@ -325,7 +325,7 @@ Test('Handlers test', async handlersTest => { } try { - await retry(async bail => { // use bail(new Error('to break before max retries')) + await retry(async () => { // use bail(new Error('to break before max retries')) const transfer = await TransferService.getById(td.messageProtocolPrepare.content.payload.transferId) || {} if (transfer.transferState !== TransferState.COMMITTED) { if (debug) console.log(`retrying in ${retryDelay / 1000}s..`) @@ -364,7 +364,7 @@ Test('Handlers test', async handlersTest => { } try { - await retry(async bail => { // use bail(new Error('to break before max retries')) + await retry(async () => { // use bail(new Error('to break before max retries')) const transfer = await TransferService.getById(td.messageProtocolPrepare.content.payload.transferId) || {} if (transfer.transferState !== TransferState.RESERVED) { if (debug) console.log(`retrying in ${retryDelay / 1000}s..`) @@ -403,7 +403,7 @@ Test('Handlers test', async handlersTest => { } try { - await retry(async bail => { // use bail(new Error('to break before max retries')) + await retry(async () => { // use bail(new Error('to break before max retries')) const transfer = await TransferService.getById(td.messageProtocolPrepare.content.payload.transferId) || {} if (transfer.transferState !== TransferInternalState.ABORTED_REJECTED) { if (debug) console.log(`retrying in ${retryDelay / 1000}s..`) @@ -442,7 +442,7 @@ Test('Handlers test', async handlersTest => { } try { - await retry(async bail => { // use bail(new Error('to break before max retries')) + await retry(async () => { // use bail(new Error('to break before max retries')) const transfer = await TransferService.getById(td.messageProtocolPrepare.content.payload.transferId) || {} if (transfer.transferState !== TransferInternalState.ABORTED_REJECTED) { if (debug) console.log(`retrying in ${retryDelay / 1000}s..`) @@ -481,7 +481,7 @@ Test('Handlers test', async handlersTest => { } try { - await retry(async bail => { // use bail(new Error('to break before max retries')) + await retry(async () => { // use bail(new Error('to break before max retries')) const transfer = await TransferService.getById(td.messageProtocolPrepare.content.payload.transferId) || {} if (transfer.transferState !== TransferState.RESERVED) { if (debug) console.log(`retrying in ${retryDelay / 1000}s..`) @@ -528,7 +528,7 @@ Test('Handlers test', async handlersTest => { } try { - await retry(async bail => { // use bail(new Error('to break before max retries')) + await retry(async () => { // use bail(new Error('to break before max retries')) const transfer = await TransferService.getById(td.messageProtocolPrepare.content.payload.transferId) || {} if (transfer.transferState !== TransferInternalState.ABORTED_ERROR) { if (debug) console.log(`retrying in ${retryDelay / 1000}s..`) @@ -574,7 +574,7 @@ Test('Handlers test', async handlersTest => { } try { - await retry(async bail => { // use bail(new Error('to break before max retries')) + await retry(async () => { // use bail(new Error('to break before max retries')) const transfer = await TransferService.getById(td.messageProtocolPrepare.content.payload.transferId) || {} if (transfer.transferState !== TransferState.RESERVED) { if (debug) console.log(`retrying in ${retryDelay / 1000}s..`) diff --git a/test/integration/models/transfer/ilpPacket.test.js b/test/integration/models/transfer/ilpPacket.test.js index 490116a02..1cb4c8cc1 100644 --- a/test/integration/models/transfer/ilpPacket.test.js +++ b/test/integration/models/transfer/ilpPacket.test.js @@ -64,7 +64,7 @@ Test('Ilp service tests', async (ilpTest) => { await ilpTest.test('create ilp', async (assert) => { try { - ilpTestValues.forEach(async ilp => { + ilpTestValues.forEach(async () => { try { const ilpResult = await HelperModule.prepareNeededData('ilpPacket') const result = ilpResult.ilp diff --git a/test/integration/models/transfer/transferExtension.test.js b/test/integration/models/transfer/transferExtension.test.js index b79a8c226..61b65fbe3 100644 --- a/test/integration/models/transfer/transferExtension.test.js +++ b/test/integration/models/transfer/transferExtension.test.js @@ -68,7 +68,7 @@ Test('Extension model test', async (extensionTest) => { await extensionTest.test('create extension', async (assert) => { try { - extensionTestValues.forEach(async (extension) => { + extensionTestValues.forEach(async () => { try { const extensionResult = await HelperModule.prepareNeededData('transferExtension') const result = extensionResult.extension[0] diff --git a/test/unit/api/metrics/handler.test.js b/test/unit/api/metrics/handler.test.js index d56c56853..1163c94e4 100644 --- a/test/unit/api/metrics/handler.test.js +++ b/test/unit/api/metrics/handler.test.js @@ -56,8 +56,7 @@ Test('metrics handler', (handlerTest) => { handlerTest.test('metrics should', (healthTest) => { healthTest.test('return thr metrics ok', async function (assert) { const reply = { - response: (response) => { - // assert.equal(response.status, 'OK') + response: () => { return { code: (statusCode) => { assert.equal(statusCode, 200) diff --git a/test/unit/api/participants/handler.test.js b/test/unit/api/participants/handler.test.js index 85d3b4d93..a7777adc0 100644 --- a/test/unit/api/participants/handler.test.js +++ b/test/unit/api/participants/handler.test.js @@ -416,7 +416,7 @@ Test('Participant', participantHandlerTest => { Participant.addEndpoint.withArgs(params.name, payload).returns(Promise.resolve(1)) const reply = { - response: (response) => { + response: () => { return { code: statusCode => { test.equal(statusCode, 201, 'Participant Endpoint created successfully') @@ -561,7 +561,7 @@ Test('Participant', participantHandlerTest => { Participant.addLimitAndInitialPosition.withArgs(params.name, payload).returns(Promise.resolve(1)) const reply = { - response: (response) => { + response: () => { return { code: statusCode => { test.equal(statusCode, 201, 'Participant limit and initial position added successfully') @@ -587,7 +587,7 @@ Test('Participant', participantHandlerTest => { Participant.addLimitAndInitialPosition.withArgs(params.name, payload).returns(Promise.resolve(1)) const reply = { - response: (response) => { + response: () => { return { code: statusCode => { test.equal(statusCode, 201, 'Participant limit and initial position added successfully') @@ -1336,7 +1336,7 @@ Test('Participant', participantHandlerTest => { } const h = { - response: (response) => { + response: () => { return { code: statusCode => { test.deepEqual(statusCode, 202) @@ -1368,7 +1368,7 @@ Test('Participant', participantHandlerTest => { } const h = { - response: (response) => { + response: () => { return { code: statusCode => { test.deepEqual(statusCode, 202)