gancio-upstream/server/migrations/20191128002750-rename_fed_user_ap_user.js
2019-12-04 01:20:31 +01:00

24 lines
562 B
JavaScript

'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
/*
Add altering commands here.
Return a promise to correctly handle asynchronicity.
Example:
return queryInterface.createTable('users', { id: Sequelize.INTEGER });
*/
return queryInterface.renameTable('fed_users', 'ap_users')
},
down: (queryInterface, Sequelize) => {
/*
Add reverting commands here.
Return a promise to correctly handle asynchronicity.
Example:
return queryInterface.dropTable('users');
*/
}
};