Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/deadlock on adjust limits #745

Merged
merged 4 commits into from
Jun 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions audit-resolve.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@
"madeAt": 1591810711608
},
"1179|faucet>minimist": {
"decision": "postpone",
"madeAt": 1591810696982
"decision": "ignore",
"madeAt": 1592265351417,
"expiresAt": 1594857330586
},
"1500|npm-audit-resolver>yargs-parser": {
"decision": "fix",
Expand Down
38 changes: 38 additions & 0 deletions migrations/310503_participantLimit-indexes-composite.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*****
License
--------------
Copyright © 2017 Bill & Melinda Gates Foundation
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.
Contributors
--------------
This is the official list of the Mojaloop project contributors for this file.
Names of the original copyright holders (individuals or organizations)
should be listed with a '*' in the first column. People who have
contributed from an organization can be listed under the organization
that actually holds the copyright for their contributions (see the
Gates Foundation organization for an example). Those individuals should have
their names indented and be marked with a '-'. Email address can be added
optionally within square brackets <email>.
* Gates Foundation
- Name Surname <name.surname@gatesfoundation.com>

* ModusBox
- Shashikant Hirugade <shashikant.hirugade@modusbox.com>
--------------
******/

'use strict'

exports.up = function (knex) {
return knex.schema.table('participantLimit', (t) => {
t.unique(['participantCurrencyId', 'participantLimitTypeId', 'isActive', 'participantLimitId'], 'participantLimit_unique_idx')
})
}

exports.down = function (knex) {
return knex.schema.table('participantLimit', (t) => {
t.dropUnique(['participantCurrencyId', 'participantLimitTypeId', 'isActive', 'participantLimitId'], 'participantLimit_unique_idx')
})
}
Loading