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

Remove unused code #504

Merged
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
4 changes: 2 additions & 2 deletions migrations/100100_event.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -37,6 +37,6 @@ exports.up = async (knex, Promise) => {
})
}

exports.down = function (knex, Promise) {
exports.down = function (knex) {
return knex.schema.dropTableIfExists('event')
}
4 changes: 2 additions & 2 deletions migrations/110100_contactType.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => {
})
}

exports.down = function (knex, Promise) {
exports.down = function (knex) {
return knex.schema.dropTableIfExists('contactType')
}
4 changes: 2 additions & 2 deletions migrations/110101_contactType-indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
Expand Down
4 changes: 2 additions & 2 deletions migrations/110200_currency.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -37,6 +37,6 @@ exports.up = async (knex, Promise) => {
})
}

exports.down = function (knex, Promise) {
exports.down = function (knex) {
return knex.schema.dropTableIfExists('currency')
}
4 changes: 2 additions & 2 deletions migrations/110201_currency-scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -34,6 +34,6 @@ exports.up = async (knex, Promise) => {
})
}

exports.down = function (knex, Promise) {
exports.down = function (knex) {
return knex.schema.dropTableIfExists('currency')
}
4 changes: 2 additions & 2 deletions migrations/110300_endpointType.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => {
})
}

exports.down = function (knex, Promise) {
exports.down = function (knex) {
return knex.schema.dropTableIfExists('endpointType')
}
4 changes: 2 additions & 2 deletions migrations/110301_endpointType-indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
Expand Down
4 changes: 2 additions & 2 deletions migrations/110400_ledgerEntryType.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => {
})
}

exports.down = function (knex, Promise) {
exports.down = function (knex) {
return knex.schema.dropTableIfExists('ledgerEntryType')
}
4 changes: 2 additions & 2 deletions migrations/110401_ledgerEntryType-indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
Expand Down
4 changes: 2 additions & 2 deletions migrations/110450_ledgerAccountType.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => {
})
}

exports.down = function (knex, Promise) {
exports.down = function (knex) {
return knex.schema.dropTableIfExists('ledgerAccountType')
}
4 changes: 2 additions & 2 deletions migrations/110451_ledgerAccountType-indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
Expand Down
4 changes: 2 additions & 2 deletions migrations/110500_participantLimitType.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => {
})
}

exports.down = function (knex, Promise) {
exports.down = function (knex) {
return knex.schema.dropTableIfExists('participantLimitType')
}
4 changes: 2 additions & 2 deletions migrations/110501_participantLimitType-indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
Expand Down
4 changes: 2 additions & 2 deletions migrations/110600_transferParticipantRoleType.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => {
})
}

exports.down = function (knex, Promise) {
exports.down = function (knex) {
return knex.schema.dropTableIfExists('transferParticipantRoleType')
}
4 changes: 2 additions & 2 deletions migrations/110601_transferParticipantRoleType-indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
Expand Down
4 changes: 2 additions & 2 deletions migrations/110700_transferState.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => {
})
}

exports.down = function (knex, Promise) {
exports.down = function (knex) {
return knex.schema.dropTableIfExists('transferState')
}
4 changes: 2 additions & 2 deletions migrations/110800_settlementWindowState.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => {
})
}

exports.down = function (knex, Promise) {
exports.down = function (knex) {
return knex.schema.dropTableIfExists('settlementWindowState')
}
4 changes: 2 additions & 2 deletions migrations/110900_settlementState.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -38,6 +38,6 @@ exports.up = async (knex, Promise) => {
})
}

exports.down = function (knex, Promise) {
exports.down = function (knex) {
return knex.schema.dropTableIfExists('settlementState')
}
6 changes: 3 additions & 3 deletions migrations/111000_amountType.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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) => {
Expand All @@ -44,6 +44,6 @@ exports.up = (knex, Promise) => {
})
}

exports.down = (knex, Promise) => {
exports.down = (knex) => {
return knex.schema.dropTableIfExists('amountType')
}
6 changes: 3 additions & 3 deletions migrations/111001_amountType-indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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')
})
Expand Down
6 changes: 3 additions & 3 deletions migrations/111100_balanceOfPayments.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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) => {
Expand All @@ -45,6 +45,6 @@ exports.up = (knex, Promise) => {
})
}

exports.down = (knex, Promise) => {
exports.down = (knex) => {
return knex.schema.dropTableIfExists('balanceOfPayments')
}
Loading