Colubrina/backend/migrations/20220326030101-settings.js

21 lines
403 B
JavaScript

"use strict"
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.addColumn("Users", "theme", {
type: Sequelize.STRING,
allowNull: false,
defaultValue: "dark"
})
},
down: async (queryInterface, Sequelize) => {
/**
* Add reverting commands here.
*
* Example:
* await queryInterface.dropTable('users');
*/
}
}