aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/initializers/migrations/0505-user-last-login-date.ts
blob: 29d9708022091fd546f1644285f0e105728ecb0b (plain) (tree)

























                                                                        
import * as Sequelize from 'sequelize'

async function up (utils: {
  transaction: Sequelize.Transaction
  queryInterface: Sequelize.QueryInterface
  sequelize: Sequelize.Sequelize
}): Promise<void> {

  {
    const field = {
      type: Sequelize.DATE,
      allowNull: true
    }
    await utils.queryInterface.addColumn('user', 'lastLoginDate', field)
  }

}

function down (options) {
  throw new Error('Not implemented.')
}

export {
  up,
  down
}