Created
July 5, 2023 21:21
-
-
Save tgmarinho/a148b33e972c720615332f15c38b0f6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
up: function (queryInterface, Sequelize) { | |
return Promise.all([ | |
queryInterface.addColumn('User', 'name', { | |
type: Sequelize.STRING | |
}), | |
queryInterface.addColumn('User', 'nickname', { | |
type: Sequelize.STRING, | |
}) | |
]); | |
}, | |
down: function (queryInterface, Sequelize) { | |
return Promise.all([ | |
queryInterface.removeColumn('User', 'name'), | |
queryInterface.removeColumn('User', 'nickname') | |
]); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment