mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-11-23 03:36:42 +11:00
39 lines
936 B
JavaScript
39 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');
|
||
|
*/
|
||
|
}
|
||
|
}
|