Migrations

This commit is contained in:
baruffaldi 2021-02-10 18:12:02 +01:00
parent eb20add0c7
commit 9b83d35ef4
2 changed files with 11 additions and 11 deletions

View File

@ -10,7 +10,7 @@ const logger = require('../logger').migrate;
* @param {Promise} Promise * @param {Promise} Promise
* @returns {Promise} * @returns {Promise}
*/ */
exports.up = function (knex, Promise) { exports.up = function (knex/*, Promise*/) {
logger.info('[' + migrate_name + '] Migrating Up...'); logger.info('[' + migrate_name + '] Migrating Up...');
@ -29,7 +29,7 @@ exports.up = function (knex, Promise) {
* @param {Promise} Promise * @param {Promise} Promise
* @returns {Promise} * @returns {Promise}
*/ */
exports.down = function (knex, Promise) { exports.down = function (knex/*, Promise*/) {
logger.info('[' + migrate_name + '] Migrating Down...'); logger.info('[' + migrate_name + '] Migrating Down...');
return knex.schema.table('redirection_host', (table) => { return knex.schema.table('redirection_host', (table) => {

View File

@ -10,7 +10,7 @@ const logger = require('../logger').migrate;
* @param {Promise} Promise * @param {Promise} Promise
* @returns {Promise} * @returns {Promise}
*/ */
exports.up = function (knex, Promise) { exports.up = function (knex/*, Promise*/) {
logger.info('[' + migrate_name + '] Migrating Up...'); logger.info('[' + migrate_name + '] Migrating Up...');
@ -29,7 +29,7 @@ exports.up = function (knex, Promise) {
* @param {Promise} Promise * @param {Promise} Promise
* @returns {Promise} * @returns {Promise}
*/ */
exports.down = function (knex, Promise) { exports.down = function (knex/*, Promise*/) {
logger.info('[' + migrate_name + '] Migrating Down...'); logger.info('[' + migrate_name + '] Migrating Down...');
return knex.schema.table('redirection_host', (table) => { return knex.schema.table('redirection_host', (table) => {