mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-11-25 04:36:44 +11:00
38 lines
936 B
JavaScript
38 lines
936 B
JavaScript
"use strict"
|
|
|
|
module.exports = {
|
|
up: async (queryInterface, Sequelize) => {
|
|
await queryInterface.addColumn("Users", "totp", {
|
|
type: Sequelize.TEXT,
|
|
allowNull: true
|
|
})
|
|
await queryInterface.addColumn("Users", "totpEnabled", {
|
|
type: Sequelize.BOOLEAN,
|
|
allowNull: false,
|
|
defaultValue: false
|
|
})
|
|
await queryInterface.addColumn("Users", "emailDirectLogin", {
|
|
type: Sequelize.BOOLEAN,
|
|
allowNull: false,
|
|
defaultValue: false
|
|
})
|
|
await queryInterface.addColumn("Users", "email", {
|
|
type: Sequelize.STRING,
|
|
allowNull: true
|
|
})
|
|
await queryInterface.addColumn("Users", "bcSessions", {
|
|
type: Sequelize.BOOLEAN,
|
|
allowNull: false,
|
|
defaultValue: false
|
|
})
|
|
},
|
|
|
|
down: async (queryInterface, Sequelize) => {
|
|
/**
|
|
* Add reverting commands here.
|
|
*
|
|
* Example:
|
|
* await queryInterface.dropTable('users');
|
|
*/
|
|
}
|
|
}
|