mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
25 lines
625 B
JavaScript
25 lines
625 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('comments', 'resources')
|
|
},
|
|
|
|
down: (queryInterface, Sequelize) => {
|
|
/*
|
|
Add reverting commands here.
|
|
Return a promise to correctly handle asynchronicity.
|
|
|
|
Example:
|
|
return queryInterface.dropTable('users');
|
|
*/
|
|
return queryInterface.renameTable('resources', 'comments')
|
|
}
|
|
};
|