Skip to content

Commit ff4a6e3

Browse files
committed
fix eslint problem on migrations
1 parent 2772489 commit ff4a6e3

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

backend/migrations/20230811144605_forward_path.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ const logger = require('../logger').migrate;
1010
* @param {Promise} Promise
1111
* @returns {Promise}
1212
*/
13-
exports.up = function (knex, Promise) {
13+
exports.up = function (knex) {
1414

1515
logger.info('[' + migrate_name + '] Migrating Up...');
1616

1717

18-
return knex.schema.alterTable('proxy_host',function(table){
19-
table.string("forward_path_prefix").notNull().defaultTo("");
20-
})
21-
.then(function() {
22-
logger.info('[' + migrate_name + '] Migrating Up Complete');
18+
return knex.schema.alterTable('proxy_host', function(table){
19+
table.string('forward_path_prefix').notNull().defaultTo('' );
2320
})
21+
.then(function() {
22+
logger.info('[' + migrate_name + '] Migrating Up Complete');
23+
});
2424
};
2525

2626
/**
@@ -30,13 +30,13 @@ exports.up = function (knex, Promise) {
3030
* @param {Promise} Promise
3131
* @returns {Promise}
3232
*/
33-
exports.down = function (knex, Promise) {
33+
exports.down = function (knex) {
3434
logger.info('[' + migrate_name + '] Migrating Down...');
3535

36-
return knex.schema.alterTable("proxy_host", function(table){
36+
return knex.schema.alterTable('proxy_host', function(table){
3737
table.dropColumn('forward_path_prefix');
3838
})
39-
.then(() => {
40-
logger.info('[' + migrate_name + '] Migrating Down Complete');
41-
});
39+
.then(() => {
40+
logger.info('[' + migrate_name + '] Migrating Down Complete');
41+
});
4242
};

0 commit comments

Comments
 (0)