26 lines
454 B
TypeScript
26 lines
454 B
TypeScript
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
|
|
}
|