mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-11-23 03:36:42 +11:00
21 lines
444 B
JavaScript
21 lines
444 B
JavaScript
|
"use strict"
|
||
|
|
||
|
module.exports = {
|
||
|
up: async (queryInterface, Sequelize) => {
|
||
|
await queryInterface.addColumn("friends", "status", {
|
||
|
type: Sequelize.ENUM(["pending", "accepted", "declined"]),
|
||
|
allowNull: false,
|
||
|
defaultValue: "pending"
|
||
|
})
|
||
|
},
|
||
|
|
||
|
down: async (queryInterface, Sequelize) => {
|
||
|
/**
|
||
|
* Add reverting commands here.
|
||
|
*
|
||
|
* Example:
|
||
|
* await queryInterface.dropTable('users');
|
||
|
*/
|
||
|
}
|
||
|
}
|