mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
18 lines
375 B
JavaScript
18 lines
375 B
JavaScript
module.exports = {
|
|
up: (queryInterface, Sequelize) => {
|
|
return queryInterface.changeColumn('events', 'slug', {
|
|
type: Sequelize.STRING,
|
|
index: true,
|
|
unique: true
|
|
})
|
|
},
|
|
|
|
down: async (queryInterface, Sequelize) => {
|
|
/**
|
|
* Add reverting commands here.
|
|
*
|
|
* Example:
|
|
* await queryInterface.dropTable('users');
|
|
*/
|
|
}
|
|
};
|