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

chore: add thirdparty endpoints to database seeds #779

Merged
merged 7 commits into from
Sep 1, 2020
Merged
Show file tree
Hide file tree
Changes from 4 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
46 changes: 46 additions & 0 deletions migrations/20200831143314_endpointNameLength.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*****
kleyow marked this conversation as resolved.
Show resolved Hide resolved
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
- Kevin Leyow <kevin.leyow@modusbox.com>
--------------
******/

'use strict'

exports.up = async (knex) => {
return await knex.schema.hasTable('endpointType').then(function(exists) {
if (exists) {
return knex.schema.alterTable('endpointType', function(t) {
t.string('name', 100).alter();
kleyow marked this conversation as resolved.
Show resolved Hide resolved
});
}
})
}

exports.down = async (knex) => {
return await knex.schema.hasTable('endpointType').then(function(exists) {
if (exists) {
return knex.schema.alterTable('endpointType', function(t) {
t.string('name', 50).alter();
});
}
})
}
Loading